| java.lang.Object sun.security.x509.OtherName
OtherName | public class OtherName implements GeneralNameInterface(Code) | | This class represents the OtherName as required by the GeneralNames
ASN.1 object. It supplies the generic framework to allow specific
Other Name types, and also provides minimal support for unrecognized
Other Name types.
The ASN.1 definition for OtherName is:
OtherName ::= SEQUENCE {
type-id OBJECT IDENTIFIER,
value [0] EXPLICIT ANY DEFINED BY type-id
}
author: Hemma Prafullchandra version: 1.12, 10/10/06 |
Method Summary | |
public 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.
| public void | encode(DerOutputStream out) Encode the Other name into the DerOutputStream. | public boolean | equals(Object other) Compares this name with another, for equality. | public byte[] | getNameValue() | public ObjectIdentifier | getOID() | public int | getType() Return the type of the GeneralName. | public int | subtreeDepth() Return subtree depth of this name for purposes of determining
NameConstraints minimum and maximum bounds. | public String | toString() Convert the name into user readable string. |
OtherName | public OtherName(ObjectIdentifier oid, byte[] value) throws IOException(Code) | | Create the OtherName object from a passed ObjectIdentfier and
byte array name value
Parameters: oid - ObjectIdentifier of this OtherName object Parameters: value - the DER-encoded value of the OtherName throws: IOException - on error |
OtherName | public OtherName(DerValue derValue) throws IOException(Code) | | Create the OtherName object from the passed encoded Der value.
Parameters: derValue - the encoded DER OtherName. exception: IOException - on error. |
constrains | public int constrains(GeneralNameInterface inputName)(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 are not supported for this name type. |
encode | public void encode(DerOutputStream out) throws IOException(Code) | | Encode the Other name into the DerOutputStream.
Parameters: out - the DER stream to encode the Other-Name to. exception: IOException - on encoding errors. |
equals | public boolean equals(Object other)(Code) | | Compares this name with another, for equality.
true iff the names are identical. |
getNameValue | public byte[] getNameValue()(Code) | | Get name value
|
getType | public int getType()(Code) | | Return the type of the GeneralName.
|
subtreeDepth | public int subtreeDepth()(Code) | | Return subtree depth of this name for purposes of determining
NameConstraints minimum and maximum bounds.
throws: UnsupportedOperationException - if not supported for this name type |
toString | public String toString()(Code) | | Convert the name into user readable string.
|
|
|