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
public abstract class GeneralName extends Object implements ASN1Encodable
A representation of an X.509 general name.- Author:
- Farah Juma
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeneralName.DirectoryNameA directory name.static classGeneralName.DNSNameA DNS name.static classGeneralName.EDIPartyNameAn EDI party name.static classGeneralName.IPAddressAn IP address.static classGeneralName.OtherNameA generic name.static classGeneralName.RegisteredIDA registered ID name.static classGeneralName.RFC822NameAn RFC 822 name.static classGeneralName.URINameA URI name.static classGeneralName.X400AddressAn X.400 address.
-
Field Summary
Fields Modifier and Type Field Description static intDIRECTORY_NAMEstatic intDNS_NAMEstatic intEDI_PARTY_NAMEstatic intIP_ADDRESSstatic intOTHER_NAMEstatic intREGISTERED_IDstatic intRFC_822_NAMEstatic intURI_NAMEstatic intX400_ADDRESS
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract 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 Detail
-
OTHER_NAME
public static final int OTHER_NAME
- See Also:
- Constant Field Values
-
RFC_822_NAME
public static final int RFC_822_NAME
- See Also:
- Constant Field Values
-
DNS_NAME
public static final int DNS_NAME
- See Also:
- Constant Field Values
-
X400_ADDRESS
public static final int X400_ADDRESS
- See Also:
- Constant Field Values
-
DIRECTORY_NAME
public static final int DIRECTORY_NAME
- See Also:
- Constant Field Values
-
EDI_PARTY_NAME
public static final int EDI_PARTY_NAME
- See Also:
- Constant Field Values
-
URI_NAME
public static final int URI_NAME
- See Also:
- Constant Field Values
-
IP_ADDRESS
public static final int IP_ADDRESS
- See Also:
- Constant Field Values
-
REGISTERED_ID
public static final int REGISTERED_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public int getType()
Get the type of this general name.- Returns:
- the type of this general name
-
getName
public abstract Object getName()
Get the name.- Returns:
- the name
-
encodeTo
public abstract void encodeTo(ASN1Encoder encoder)
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
-
-