| sun.security.x509.GeneralNameInterface
All known Subclasses: sun.security.x509.OtherName, sun.security.x509.URIName, sun.security.x509.X500Name, sun.security.x509.EDIPartyName, sun.security.x509.DNSName, sun.security.x509.IPAddressName, sun.security.x509.OIDName, sun.security.x509.RFC822Name,
GeneralNameInterface | public interface GeneralNameInterface (Code) | | 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 version: 1.10 |
Method Summary | |
int | constrains(GeneralNameInterface inputName) Return type of constraint inputName places on this name:
- NAME_DIFF_TYPE = -1: input name is different type from name (i.e.
| void | encode(DerOutputStream out) Encode the name to the specified DerOutputStream. | int | getType() Return the type of the general name, as
defined above. | 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. |
NAME_ANY | final public static int NAME_ANY(Code) | | The list of names supported.
|
NAME_DIFF_TYPE | final public static int NAME_DIFF_TYPE(Code) | | The list of constraint results.
|
NAME_DIRECTORY | final public static int NAME_DIRECTORY(Code) | | |
NAME_DNS | final public static int NAME_DNS(Code) | | |
NAME_EDI | final public static int NAME_EDI(Code) | | |
NAME_IP | final public static int NAME_IP(Code) | | |
NAME_MATCH | final public static int NAME_MATCH(Code) | | |
NAME_NARROWS | final public static int NAME_NARROWS(Code) | | |
NAME_OID | final public static int NAME_OID(Code) | | |
NAME_RFC822 | final public static int NAME_RFC822(Code) | | |
NAME_SAME_TYPE | final public static int NAME_SAME_TYPE(Code) | | |
NAME_URI | final public static int NAME_URI(Code) | | |
NAME_WIDENS | final public static int NAME_WIDENS(Code) | | |
NAME_X400 | final public static int NAME_X400(Code) | | |
constrains | int constrains(GeneralNameInterface inputName) throws UnsupportedOperationException(Code) | | Return type of constraint inputName places on this name:
- NAME_DIFF_TYPE = -1: input name is different type from name (i.e. does not constrain).
- NAME_MATCH = 0: input name matches name.
- NAME_NARROWS = 1: input name narrows name (is lower in the naming subtree)
- NAME_WIDENS = 2: input name widens name (is higher in the naming subtree)
- NAME_SAME_TYPE = 3: input name does not match or narrow name, but is same type.
. These results are used in checking NameConstraints during
certification path verification.
Parameters: inputName - to be checked for being constrained throws: UnsupportedOperationException - if name is same type, but comparison operations arenot supported for this name type. |
encode | void encode(DerOutputStream out) throws IOException(Code) | | Encode the name to the specified DerOutputStream.
Parameters: out - the DerOutputStream to encode the GeneralName to. exception: IOException - thrown if the GeneralName could not beencoded. |
getType | int getType()(Code) | | Return the type of the general name, as
defined above.
|
|
|