Class GeneralName.X400Address
java.lang.Object
org.wildfly.security.x500.GeneralName
org.wildfly.security.x500.GeneralName.X400Address
- All Implemented Interfaces:
org.wildfly.security.asn1.ASN1Encodable
- Enclosing class:
GeneralName
An X.400 address.
- Author:
- Farah Juma
-
Nested Class Summary
Nested classes/interfaces inherited from class GeneralName
GeneralName.DirectoryName, GeneralName.DNSName, GeneralName.EDIPartyName, GeneralName.IPAddress, GeneralName.OtherName, GeneralName.RegisteredID, GeneralName.RFC822Name, GeneralName.URIName, GeneralName.X400Address -
Field Summary
Fields inherited from class GeneralName
DIRECTORY_NAME, DNS_NAME, EDI_PARTY_NAME, IP_ADDRESS, OTHER_NAME, REGISTERED_ID, RFC_822_NAME, URI_NAME, X400_ADDRESS -
Constructor Summary
ConstructorsConstructorDescriptionX400Address(byte[] encodedName) Create anX400Addressthat is defined as:X400Address(byte[] encoded, boolean valueBytesOnly) Create anX400Addressthat is defined as: -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTo(org.wildfly.security.asn1.ASN1Encoder encoder) Encode thisGeneralNameelement using the given ASN.1 encoder, whereGeneralNameis defined as:booleanbooleanequals(GeneralName.X400Address other) byte[]getName()Get the name.inthashCode()Methods inherited from class GeneralName
getType
-
Constructor Details
-
X400Address
public X400Address(byte[] encodedName) throws org.wildfly.security.asn1.ASN1Exception Create an
X400Addressthat 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 }- Parameters:
encodedName- the DER encoded form of the name, as a byte array- Throws:
org.wildfly.security.asn1.ASN1Exception- ifencodedNameis not DER encoded
-
X400Address
public X400Address(byte[] encoded, boolean valueBytesOnly) throws org.wildfly.security.asn1.ASN1Exception Create an
X400Addressthat 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 }- Parameters:
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 notencodedcontains only the value bytes from the DER encoded form of the name- Throws:
org.wildfly.security.asn1.ASN1Exception- ifencodedis not DER encoded
-
-
Method Details
-
getName
public byte[] getName()Description copied from class:GeneralNameGet the name.- Specified by:
getNamein classGeneralName- Returns:
- the name
-
encodeTo
public void encodeTo(org.wildfly.security.asn1.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 interfaceorg.wildfly.security.asn1.ASN1Encodable- Specified by:
encodeToin classGeneralName- Parameters:
encoder- the encoder (must not benull)
-
equals
-
equals
-
hashCode
-