GeneralNameInterface

This interface specifies the abstract methods which have to be implemented by all the members of the GeneralNames ASN.1 object.

@author Amit Kapoor @author Hemma Prafullchandra

Members

Functions

constrains
int constrains(GeneralNameInterface inputName)

Return type of constraint inputName places on this name:<ul> <li>NAME_DIFF_TYPE = -1: input name is different type from name (i.e. does not constrain). <li>NAME_MATCH = 0: input name matches name. <li>NAME_NARROWS = 1: input name narrows name (is lower in the naming subtree) <li>NAME_WIDENS = 2: input name widens name (is higher in the naming subtree) <li>NAME_SAME_TYPE = 3: input name does not match or narrow name, but is same type. </ul>. These results are used in checking NameConstraints during certification path verification.

encode
void encode(DerOutputStream ot)

Encode the name to the specified DerOutputStream.

getType
int getType()

Return the type of the general name, as defined above.

subtreeDepth
int subtreeDepth()

Return subtree depth of this name for purposes of determining NameConstraints minimum and maximum bounds and for calculating path lengths in name subtrees.

Variables

NAME_ANY
enum int NAME_ANY;

The list of names supported.

NAME_DIFF_TYPE
enum int NAME_DIFF_TYPE;

The list of constraint results.

NAME_DIRECTORY
enum int NAME_DIRECTORY;
Undocumented in source.
NAME_DNS
enum int NAME_DNS;
Undocumented in source.
NAME_EDI
enum int NAME_EDI;
Undocumented in source.
NAME_IP
enum int NAME_IP;
Undocumented in source.
NAME_MATCH
enum int NAME_MATCH;
Undocumented in source.
NAME_NARROWS
enum int NAME_NARROWS;
Undocumented in source.
NAME_OID
enum int NAME_OID;
Undocumented in source.
NAME_RFC822
enum int NAME_RFC822;
Undocumented in source.
NAME_SAME_TYPE
enum int NAME_SAME_TYPE;
Undocumented in source.
NAME_URI
enum int NAME_URI;
Undocumented in source.
NAME_WIDENS
enum int NAME_WIDENS;
Undocumented in source.
NAME_X400
enum int NAME_X400;
Undocumented in source.

Meta