Skip to content

ACM  >  Unions  >  GeneralName

GeneralName

Union Type

GeneralName module-attribute

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

Union Member Types

GeneralNameDirectoryName dataclass

Bases: _SerdeShape

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.

Attributes

value instance-attribute

GeneralNameDnsName dataclass

Bases: _SerdeShape

Represents GeneralName as a DNS name.

Attributes

value instance-attribute
value: str

GeneralNameIpAddress dataclass

Bases: _SerdeShape

Represents GeneralName as an IPv4 or IPv6 address.

Attributes

value instance-attribute
value: str

GeneralNameOtherName dataclass

Bases: _SerdeShape

Represents GeneralName using an OtherName object.

Attributes

value instance-attribute
value: OtherName

GeneralNameRegisteredId dataclass

Bases: _SerdeShape

Represents GeneralName as an object identifier (OID).

Attributes

value instance-attribute
value: str

GeneralNameRfc822Name dataclass

Bases: _SerdeShape

Represents GeneralName as an RFC 822 email address.

Attributes

value instance-attribute
value: str

GeneralNameUniformResourceIdentifier dataclass

Bases: _SerdeShape

Represents GeneralName as a URI.

Attributes

value instance-attribute
value: str

GeneralNameUnknown dataclass

Bases: _SerdeShape

Represents an unknown variant. If you receive this value, you will need to update your library to receive the parsed value. This value may not be deliberately sent.

Attributes

tag instance-attribute
tag: str