public interface GeneralNameInterface
extends java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
NAME_ANY
The list of names supported.
|
static int |
NAME_DIRECTORY |
static int |
NAME_DNS |
static int |
NAME_EDI |
static int |
NAME_IP |
static int |
NAME_OID |
static int |
NAME_RFC822 |
static int |
NAME_URI |
static int |
NAME_X400 |
Modifier and Type | Method and Description |
---|---|
void |
encode(DerOutputStream out)
Encode the name to the specified DerOutputStream.
|
int |
getType()
Return the type of the general name, as
defined above.
|
default boolean |
validSingle()
Whether the name is valid as a single name (e.g. for use in
Subject Alternative Name extension).
|
default boolean |
validSubtree()
Whether the name is valid as a subtree name (e.g. for use in
Name Constraints extension)
|
static final int NAME_ANY
static final int NAME_RFC822
static final int NAME_DNS
static final int NAME_X400
static final int NAME_DIRECTORY
static final int NAME_EDI
static final int NAME_URI
static final int NAME_IP
static final int NAME_OID
int getType()
void encode(DerOutputStream out) throws java.io.IOException
out
- the DerOutputStream to encode the GeneralName to.java.io.IOException
- thrown if the GeneralName could not be
encoded.default boolean validSingle()
default boolean validSubtree()