Package org.wildfly.security.x500
Class GeneralName.OtherName
- java.lang.Object
- 
- org.wildfly.security.x500.GeneralName
- 
- org.wildfly.security.x500.GeneralName.OtherName
 
 
- 
- All Implemented Interfaces:
- ASN1Encodable
 - Enclosing class:
- GeneralName
 
 public static final class GeneralName.OtherName extends GeneralName A generic name.- Author:
- Farah Juma
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class org.wildfly.security.x500.GeneralNameGeneralName.DirectoryName, GeneralName.DNSName, GeneralName.EDIPartyName, GeneralName.IPAddress, GeneralName.OtherName, GeneralName.RegisteredID, GeneralName.RFC822Name, GeneralName.URIName, GeneralName.X400Address
 
- 
 - 
Field SummaryFields Modifier and Type Field Description private byte[]encodedNameprivate byte[]encodedValueprivate StringtypeId- 
Fields inherited from class org.wildfly.security.x500.GeneralNameDIRECTORY_NAME, DNS_NAME, EDI_PARTY_NAME, IP_ADDRESS, OTHER_NAME, REGISTERED_ID, RFC_822_NAME, URI_NAME, X400_ADDRESS
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencodeTo(ASN1Encoder encoder)Encode thisGeneralNameelement using the given ASN.1 encoder, whereGeneralNameis defined as:booleanequals(Object obj)booleanequals(GeneralName.OtherName other)byte[]getEncodedValue()byte[]getName()Get the name.StringgetObjectIdentifier()inthashCode()- 
Methods inherited from class org.wildfly.security.x500.GeneralNamegetType
 
- 
 
- 
- 
- 
Field Detail- 
encodedNameprivate final byte[] encodedName 
 - 
typeIdprivate final String typeId 
 - 
encodedValueprivate final byte[] encodedValue 
 
- 
 - 
Constructor Detail- 
OtherNamepublic OtherName(byte[] encodedName) throws ASN1ExceptionCreate an OtherNamethat is defined as:OtherName ::= SEQUENCE { type-id OBJECT IDENTIFIER, value [0] EXPLICIT ANY DEFINED BY type-id }- Parameters:
- encodedName- the DER encoded form of the name, as a byte array
- Throws:
- ASN1Exception- if- encodedNameis not DER encoded
 
 - 
OtherNamepublic OtherName(String typeId, byte[] encodedValue) throws ASN1Exception Create an OtherNamethat is defined as:OtherName ::= SEQUENCE { type-id OBJECT IDENTIFIER, value [0] EXPLICIT ANY DEFINED BY type-id }- Parameters:
- typeId- the object identifier for this name
- encodedValue- the DER encoded value for this name
- Throws:
- ASN1Exception- if- encodedValueis not DER encoded
 
 
- 
 - 
Method Detail- 
getNamepublic byte[] getName() Description copied from class:GeneralNameGet the name.- Specified by:
- getNamein class- GeneralName
- Returns:
- the name
 
 - 
encodeTopublic void encodeTo(ASN1Encoder encoder) Description copied from class:GeneralNameEncode 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
- Specified by:
- encodeToin class- GeneralName
- Parameters:
- encoder- the encoder (must not be- null)
 
 - 
getObjectIdentifierpublic String getObjectIdentifier() 
 - 
getEncodedValuepublic byte[] getEncodedValue() 
 - 
equalspublic boolean equals(GeneralName.OtherName other) 
 
- 
 
-