Package org.wildfly.security.x500
Class GeneralName
- java.lang.Object
-
- org.wildfly.security.x500.GeneralName
-
- All Implemented Interfaces:
ASN1Encodable
- Direct Known Subclasses:
GeneralName.DirectoryName
,GeneralName.DNSName
,GeneralName.EDIPartyName
,GeneralName.IPAddress
,GeneralName.OtherName
,GeneralName.RegisteredID
,GeneralName.RFC822Name
,GeneralName.URIName
,GeneralName.X400Address
public abstract class GeneralName extends Object implements ASN1Encodable
A representation of an X.509 general name.- Author:
- Farah Juma
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GeneralName.DirectoryName
A directory name.static class
GeneralName.DNSName
A DNS name.static class
GeneralName.EDIPartyName
An EDI party name.static class
GeneralName.IPAddress
An IP address.static class
GeneralName.OtherName
A generic name.static class
GeneralName.RegisteredID
A registered ID name.static class
GeneralName.RFC822Name
An RFC 822 name.static class
GeneralName.URIName
A URI name.static class
GeneralName.X400Address
An X.400 address.
-
Field Summary
Fields Modifier and Type Field Description static int
DIRECTORY_NAME
static int
DNS_NAME
static int
EDI_PARTY_NAME
static int
IP_ADDRESS
static int
OTHER_NAME
static int
REGISTERED_ID
static int
RFC_822_NAME
private int
type
static int
URI_NAME
static int
X400_ADDRESS
-
Constructor Summary
Constructors Constructor Description GeneralName(int type)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
encodeTo(ASN1Encoder encoder)
Encode thisGeneralName
element using the given ASN.1 encoder, whereGeneralName
is defined as:abstract Object
getName()
Get the name.int
getType()
Get the type of this general name.
-
-
-
Field Detail
-
OTHER_NAME
public static final int OTHER_NAME
- See Also:
- Constant Field Values
-
RFC_822_NAME
public static final int RFC_822_NAME
- See Also:
- Constant Field Values
-
DNS_NAME
public static final int DNS_NAME
- See Also:
- Constant Field Values
-
X400_ADDRESS
public static final int X400_ADDRESS
- See Also:
- Constant Field Values
-
DIRECTORY_NAME
public static final int DIRECTORY_NAME
- See Also:
- Constant Field Values
-
EDI_PARTY_NAME
public static final int EDI_PARTY_NAME
- See Also:
- Constant Field Values
-
URI_NAME
public static final int URI_NAME
- See Also:
- Constant Field Values
-
IP_ADDRESS
public static final int IP_ADDRESS
- See Also:
- Constant Field Values
-
REGISTERED_ID
public static final int REGISTERED_ID
- See Also:
- Constant Field Values
-
type
private final int type
-
-
Method Detail
-
getType
public int getType()
Get the type of this general name.- Returns:
- the type of this general name
-
getName
public abstract Object getName()
Get the name.- Returns:
- the name
-
encodeTo
public abstract void encodeTo(ASN1Encoder encoder)
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
- Parameters:
encoder
- the encoder (must not benull
)- Throws:
ASN1Exception
- if the general name is invalid
-
-