GeneralName

sealed class GeneralName

Describes an ASN.1 X.400 GeneralName as defined in RFC 5280. Only one of the following naming options should be provided.

Inheritors

Types

Link copied to clipboard

Contains information about the certificate subject. The Subject field in the certificate identifies the entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or service. The Subject must contain an X.500 distinguished name (DN). A DN is a sequence of relative distinguished names (RDNs). The RDNs are separated by commas in the certificate.

Link copied to clipboard
data class DnsName(val value: String) : GeneralName

Represents GeneralName as a DNS name.

Link copied to clipboard
data class IpAddress(val value: String) : GeneralName

Represents GeneralName as an IPv4 or IPv6 address.

Link copied to clipboard
data class OtherName(val value: OtherName) : GeneralName

Represents GeneralName using an OtherName object.

Link copied to clipboard
data class RegisteredId(val value: String) : GeneralName

Represents GeneralName as an object identifier (OID).

Link copied to clipboard
data class Rfc822Name(val value: String) : GeneralName

Represents GeneralName as an RFC 822 email address.

Link copied to clipboard
Link copied to clipboard

Represents GeneralName as a URI.

Functions

Link copied to clipboard

Casts this GeneralName as a DirectoryName and retrieves its aws.sdk.kotlin.services.acm.model.DistinguishedName value. Throws an exception if the GeneralName is not a DirectoryName.

Link copied to clipboard
Link copied to clipboard

Casts this GeneralName as a DnsName and retrieves its kotlin.String value. Throws an exception if the GeneralName is not a DnsName.

Link copied to clipboard

Casts this GeneralName as a DnsName and retrieves its kotlin.String value. Returns null if the GeneralName is not a DnsName.

Link copied to clipboard

Casts this GeneralName as a IpAddress and retrieves its kotlin.String value. Throws an exception if the GeneralName is not a IpAddress.

Link copied to clipboard

Casts this GeneralName as a IpAddress and retrieves its kotlin.String value. Returns null if the GeneralName is not a IpAddress.

Link copied to clipboard

Casts this GeneralName as a OtherName and retrieves its aws.sdk.kotlin.services.acm.model.OtherName value. Throws an exception if the GeneralName is not a OtherName.

Link copied to clipboard

Casts this GeneralName as a OtherName and retrieves its aws.sdk.kotlin.services.acm.model.OtherName value. Returns null if the GeneralName is not a OtherName.

Link copied to clipboard

Casts this GeneralName as a RegisteredId and retrieves its kotlin.String value. Throws an exception if the GeneralName is not a RegisteredId.

Link copied to clipboard

Casts this GeneralName as a RegisteredId and retrieves its kotlin.String value. Returns null if the GeneralName is not a RegisteredId.

Link copied to clipboard

Casts this GeneralName as a Rfc822Name and retrieves its kotlin.String value. Throws an exception if the GeneralName is not a Rfc822Name.

Link copied to clipboard

Casts this GeneralName as a Rfc822Name and retrieves its kotlin.String value. Returns null if the GeneralName is not a Rfc822Name.

Link copied to clipboard

Casts this GeneralName as a UniformResourceIdentifier and retrieves its kotlin.String value. Throws an exception if the GeneralName is not a UniformResourceIdentifier.

Link copied to clipboard

Casts this GeneralName as a UniformResourceIdentifier and retrieves its kotlin.String value. Returns null if the GeneralName is not a UniformResourceIdentifier.