Interface GeneralNameInterface
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
DNSName,EDIPartyName,GeneralName,IPAddressName,OIDName,OtherName,RFC822Name,URIName,X500Name
public interface GeneralNameInterface extends java.io.SerializableThis interface specifies the abstract methods which have to be implemented by all the members of the GeneralNames ASN.1 object.
-
-
Field Summary
Fields Modifier and Type Field Description static intNAME_ANYThe list of names supported.static intNAME_DIRECTORYstatic intNAME_DNSstatic intNAME_EDIstatic intNAME_IPstatic intNAME_OIDstatic intNAME_RFC822static intNAME_URIstatic intNAME_X400
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidencode(DerOutputStream out)Encode the name to the specified DerOutputStream.intgetType()Return the type of the general name, as defined above.default booleanvalidSingle()Whether the name is valid as a single name (e.g. for use in Subject Alternative Name extension).default booleanvalidSubtree()Whether the name is valid as a subtree name (e.g. for use in Name Constraints extension)
-
-
-
Field Detail
-
NAME_ANY
static final int NAME_ANY
The list of names supported.- See Also:
- Constant Field Values
-
NAME_RFC822
static final int NAME_RFC822
- See Also:
- Constant Field Values
-
NAME_DNS
static final int NAME_DNS
- See Also:
- Constant Field Values
-
NAME_X400
static final int NAME_X400
- See Also:
- Constant Field Values
-
NAME_DIRECTORY
static final int NAME_DIRECTORY
- See Also:
- Constant Field Values
-
NAME_EDI
static final int NAME_EDI
- See Also:
- Constant Field Values
-
NAME_URI
static final int NAME_URI
- See Also:
- Constant Field Values
-
NAME_IP
static final int NAME_IP
- See Also:
- Constant Field Values
-
NAME_OID
static final int NAME_OID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
int getType()
Return the type of the general name, as defined above.
-
encode
void encode(DerOutputStream out) throws java.io.IOException
Encode the name to the specified DerOutputStream.- Parameters:
out- the DerOutputStream to encode the GeneralName to.- Throws:
java.io.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)
-
-