public static final class GeneralName.OtherName extends GeneralName
GeneralName.DirectoryName, GeneralName.DNSName, GeneralName.EDIPartyName, GeneralName.IPAddress, GeneralName.OtherName, GeneralName.RegisteredID, GeneralName.RFC822Name, GeneralName.URIName, GeneralName.X400Address
DIRECTORY_NAME, DNS_NAME, EDI_PARTY_NAME, IP_ADDRESS, OTHER_NAME, REGISTERED_ID, RFC_822_NAME, URI_NAME, X400_ADDRESS
Constructor and Description |
---|
OtherName(byte[] encodedName)
Create an
OtherName that is defined as: |
OtherName(String typeId,
byte[] encodedValue)
Create an
OtherName that is defined as: |
Modifier and Type | Method and Description |
---|---|
void |
encodeTo(ASN1Encoder encoder)
Encode this
GeneralName element using the given ASN.1 encoder,
where GeneralName is defined as: |
boolean |
equals(GeneralName.OtherName other) |
boolean |
equals(Object obj) |
byte[] |
getEncodedValue() |
byte[] |
getName()
Get the name.
|
String |
getObjectIdentifier() |
int |
hashCode() |
getType
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
ofBMPString, ofEncodedBytes, ofIA5String, ofInteger, ofInteger, ofOid, ofPrintableString, ofUniversalString, ofUtf8String
public OtherName(byte[] encodedName) throws ASN1Exception
Create an OtherName
that is defined as:
OtherName ::= SEQUENCE { type-id OBJECT IDENTIFIER, value [0] EXPLICIT ANY DEFINED BY type-id }
encodedName
- the DER encoded form of the name, as a byte arrayASN1Exception
- if encodedName
is not DER encodedpublic OtherName(String typeId, byte[] encodedValue) throws ASN1Exception
Create an OtherName
that is defined as:
OtherName ::= SEQUENCE { type-id OBJECT IDENTIFIER, value [0] EXPLICIT ANY DEFINED BY type-id }
typeId
- the object identifier for this nameencodedValue
- the DER encoded value for this nameASN1Exception
- if encodedValue
is not DER encodedpublic byte[] getName()
GeneralName
getName
in class GeneralName
public void encodeTo(ASN1Encoder encoder)
GeneralName
Encode this GeneralName
element using the given ASN.1 encoder,
where GeneralName
is 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 }
encodeTo
in interface ASN1Encodable
encodeTo
in class GeneralName
encoder
- the encoder (must not be null
)public String getObjectIdentifier()
public byte[] getEncodedValue()
public boolean equals(GeneralName.OtherName other)
Copyright © 2020 JBoss by Red Hat. All rights reserved.