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 SummaryNested 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 SummaryFields 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 SummaryAll 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_NAMEpublic static final int OTHER_NAME - See Also:
- Constant Field Values
 
 - 
RFC_822_NAMEpublic static final int RFC_822_NAME - See Also:
- Constant Field Values
 
 - 
DNS_NAMEpublic static final int DNS_NAME - See Also:
- Constant Field Values
 
 - 
X400_ADDRESSpublic static final int X400_ADDRESS - See Also:
- Constant Field Values
 
 - 
DIRECTORY_NAMEpublic static final int DIRECTORY_NAME - See Also:
- Constant Field Values
 
 - 
EDI_PARTY_NAMEpublic static final int EDI_PARTY_NAME - See Also:
- Constant Field Values
 
 - 
URI_NAMEpublic static final int URI_NAME - See Also:
- Constant Field Values
 
 - 
IP_ADDRESSpublic static final int IP_ADDRESS - See Also:
- Constant Field Values
 
 - 
REGISTERED_IDpublic static final int REGISTERED_ID - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getTypepublic int getType() Get the type of this general name.- Returns:
- the type of this general name
 
 - 
getNamepublic abstract Object getName() Get the name.- Returns:
- the name
 
 - 
encodeTopublic 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 interface- ASN1Encodable
- Parameters:
- encoder- the encoder (must not be- null)
- Throws:
- ASN1Exception- if the general name is invalid
 
 
- 
 
-