Interface GeneralNameInterface
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DNSName
,EDIPartyName
,GeneralName
,IPAddressName
,OIDName
,OtherName
,RFC822Name
,URIName
,X500Name
This interface specifies the abstract methods which have to be
implemented by all the members of the GeneralNames ASN.1 object.
- Version:
- 1.6
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The list of names supported.static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
encode
(DerOutputStream out) Encode the name to the specified DerOutputStream.int
getType()
Return the type of the general name, as defined above.default boolean
Whether the name is valid as a single name (e.g.default boolean
Whether the name is valid as a subtree name (e.g.
-
Field Details
-
NAME_ANY
static final int NAME_ANYThe list of names supported.- See Also:
-
NAME_RFC822
static final int NAME_RFC822- See Also:
-
NAME_DNS
static final int NAME_DNS- See Also:
-
NAME_X400
static final int NAME_X400- See Also:
-
NAME_DIRECTORY
static final int NAME_DIRECTORY- See Also:
-
NAME_EDI
static final int NAME_EDI- See Also:
-
NAME_URI
static final int NAME_URI- See Also:
-
NAME_IP
static final int NAME_IP- See Also:
-
NAME_OID
static final int NAME_OID- See Also:
-
-
Method Details
-
getType
int getType()Return the type of the general name, as defined above. -
encode
Encode the name to the specified DerOutputStream.- Parameters:
out
- the DerOutputStream to encode the GeneralName to.- Throws:
IOException
- thrown if the GeneralName could not be encoded.
-
validSingle
default boolean validSingle()Whether the name is valid as a single name (e.g. for use in Subject Alternative Name extension). -
validSubtree
default boolean validSubtree()Whether the name is valid as a subtree name (e.g. for use in Name Constraints extension)
-