Package org.wildfly.security.x500
Class GeneralName.EDIPartyName
- java.lang.Object
-
- org.wildfly.security.x500.GeneralName
-
- org.wildfly.security.x500.GeneralName.EDIPartyName
-
- All Implemented Interfaces:
ASN1Encodable
- Enclosing class:
- GeneralName
public static final class GeneralName.EDIPartyName extends GeneralName
An EDI party name.- Author:
- Farah Juma
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.wildfly.security.x500.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 org.wildfly.security.x500.GeneralName
DIRECTORY_NAME, DNS_NAME, EDI_PARTY_NAME, IP_ADDRESS, OTHER_NAME, REGISTERED_ID, RFC_822_NAME, URI_NAME, X400_ADDRESS
-
-
Constructor Summary
Constructors Constructor Description EDIPartyName(byte[] encodedName)
Create anEDIPartyName
that is defined as:EDIPartyName(byte[] encoded, boolean valueBytesOnly)
Create anEDIPartyName
that is defined as:
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encodeTo(ASN1Encoder encoder)
Encode thisGeneralName
element using the given ASN.1 encoder, whereGeneralName
is defined as:boolean
equals(Object obj)
boolean
equals(GeneralName.EDIPartyName other)
byte[]
getName()
Get the name.int
hashCode()
-
Methods inherited from class org.wildfly.security.x500.GeneralName
getType
-
-
-
-
Constructor Detail
-
EDIPartyName
public EDIPartyName(byte[] encodedName) throws ASN1Exception
Create an
EDIPartyName
that is defined as:EDIPartyName ::= SEQUENCE { nameAssigner [0] DirectoryString OPTIONAL, partyName [1] DirectoryString }
- Parameters:
encodedName
- the DER encoded form of the name, as a byte array- Throws:
ASN1Exception
- ifencodedName
is not DER encoded
-
EDIPartyName
public EDIPartyName(byte[] encoded, boolean valueBytesOnly) throws ASN1Exception
Create an
EDIPartyName
that is defined as:EDIPartyName ::= SEQUENCE { nameAssigner [0] DirectoryString OPTIONAL, partyName [1] DirectoryString }
- 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 notencoded
contains only the value bytes from the DER encoded form of the name- Throws:
ASN1Exception
- ifencoded
is not DER encoded
-
-
Method Detail
-
getName
public byte[] getName()
Description copied from class:GeneralName
Get the name.- Specified by:
getName
in classGeneralName
- Returns:
- the name
-
encodeTo
public void encodeTo(ASN1Encoder encoder)
Description copied from class:GeneralName
Encode this
GeneralName
element using the given ASN.1 encoder, whereGeneralName
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 }
- Specified by:
encodeTo
in interfaceASN1Encodable
- Specified by:
encodeTo
in classGeneralName
- Parameters:
encoder
- the encoder (must not benull
)
-
equals
public boolean equals(GeneralName.EDIPartyName other)
-
-