Package org.wildfly.security.x500
Class GeneralName
java.lang.Object
org.wildfly.security.x500.GeneralName
- All Implemented Interfaces:
ASN1Encodable
- Direct Known Subclasses:
GeneralName.DirectoryName,GeneralName.DNSName,GeneralName.EDIPartyName,GeneralName.IPAddress,GeneralName.OtherName,GeneralName.RegisteredID,GeneralName.RFC822Name,GeneralName.URIName,GeneralName.X400Address
A representation of an X.509 general name.
- Author:
- Farah Juma
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA directory name.static final classA DNS name.static final classAn EDI party name.static final classAn IP address.static final classA generic name.static final classA registered ID name.static final classAn RFC 822 name.static final classA URI name.static final classAn X.400 address. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionabstract voidencodeTo(ASN1Encoder encoder) Encode thisGeneralNameelement using the given ASN.1 encoder, whereGeneralNameis defined as:abstract ObjectgetName()Get the name.intgetType()Get the type of this general name.
-
Field Details
-
OTHER_NAME
public static final int OTHER_NAME- See Also:
-
RFC_822_NAME
public static final int RFC_822_NAME- See Also:
-
DNS_NAME
public static final int DNS_NAME- See Also:
-
X400_ADDRESS
public static final int X400_ADDRESS- See Also:
-
DIRECTORY_NAME
public static final int DIRECTORY_NAME- See Also:
-
EDI_PARTY_NAME
public static final int EDI_PARTY_NAME- See Also:
-
URI_NAME
public static final int URI_NAME- See Also:
-
IP_ADDRESS
public static final int IP_ADDRESS- See Also:
-
REGISTERED_ID
public static final int REGISTERED_ID- See Also:
-
-
Method Details
-
getType
public int getType()Get the type of this general name.- Returns:
- the type of this general name
-
getName
Get the name.- Returns:
- the name
-
encodeTo
Encode this
GeneralNameelement using the given ASN.1 encoder, whereGeneralNameis defined as:GeneralName ::= CHOICE { otherName [0] OtherName, rfc822Name [1] IA5String, dNSName [2] IA5String, x400Address [3] ORAddress, directoryName [4] Name, ediPartyName [5] EDIPartyName, uniformResourceIdentifier [6] IA5String, iPAddress [7] OCTET STRING, registeredID [8] OBJECT IDENTIFIER }- Specified by:
encodeToin interfaceASN1Encodable- Parameters:
encoder- the encoder (must not benull)- Throws:
ASN1Exception- if the general name is invalid
-