
public static final class GeneralName.X400Address extends GeneralName
GeneralName.DirectoryName, GeneralName.DNSName, GeneralName.EDIPartyName, GeneralName.IPAddress, GeneralName.OtherName, GeneralName.RegisteredID, GeneralName.RFC822Name, GeneralName.URIName, GeneralName.X400AddressDIRECTORY_NAME, DNS_NAME, EDI_PARTY_NAME, IP_ADDRESS, OTHER_NAME, REGISTERED_ID, RFC_822_NAME, URI_NAME, X400_ADDRESS| Constructor and Description |
|---|
X400Address(byte[] encodedName)
Create an
X400Address that is defined as: |
X400Address(byte[] encoded,
boolean valueBytesOnly)
Create an
X400Address 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.X400Address other) |
boolean |
equals(Object obj) |
byte[] |
getName()
Get the name.
|
int |
hashCode() |
getTypeclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitofBMPString, ofEncodedBytes, ofIA5String, ofInteger, ofInteger, ofOid, ofPrintableString, ofUniversalString, ofUtf8Stringpublic X400Address(byte[] encodedName)
throws ASN1Exception
Create an X400Address that is defined as:
X400Address ::= SEQUENCE {
built-in-standard-attributes BuiltInStandardAttributes,
built-in-domain-defined-attributes BuiltInDomainDefinedAttributes OPTIONAL,
-- see also teletex-domain-defined-attributes
extension-attributes ExtensionAttributes OPTIONAL }
encodedName - the DER encoded form of the name, as a byte arrayASN1Exception - if encodedName is not DER encodedpublic X400Address(byte[] encoded,
boolean valueBytesOnly)
throws ASN1Exception
Create an X400Address that is defined as:
X400Address ::= SEQUENCE {
built-in-standard-attributes BuiltInStandardAttributes,
built-in-domain-defined-attributes BuiltInDomainDefinedAttributes OPTIONAL,
-- see also teletex-domain-defined-attributes
extension-attributes ExtensionAttributes OPTIONAL }
encoded - the DER encoded form of the name or the value bytes from the DER encoded form of the name, as a byte arrayvalueBytesOnly - whether or not encoded contains only the value bytes from the DER encoded form of the nameASN1Exception - if encoded is not DER encodedpublic byte[] getName()
GeneralNamegetName in class GeneralNamepublic 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 ASN1EncodableencodeTo in class GeneralNameencoder - the encoder (must not be null)public boolean equals(GeneralName.X400Address other)
Copyright © 2020 JBoss by Red Hat. All rights reserved.