|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectsun.security.x509.OtherName
public class OtherName
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
}
| Field Summary |
|---|
| Fields inherited from interface sun.security.x509.GeneralNameInterface |
|---|
NAME_ANY, NAME_DIFF_TYPE, NAME_DIRECTORY, NAME_DNS, NAME_EDI, NAME_IP, NAME_MATCH, NAME_NARROWS, NAME_OID, NAME_RFC822, NAME_SAME_TYPE, NAME_URI, NAME_WIDENS, NAME_X400 |
| Constructor Summary | |
|---|---|
OtherName(DerValue derValue)
Create the OtherName object from the passed encoded Der value. |
|
OtherName(ObjectIdentifier oid,
byte[] value)
Create the OtherName object from a passed ObjectIdentfier and byte array name value |
|
| 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 Other name into the DerOutputStream. |
boolean |
equals(Object other)
Compares this name with another, for equality. |
byte[] |
getNameValue()
Get name value |
ObjectIdentifier |
getOID()
Get ObjectIdentifier |
int |
getType()
Return the type of the GeneralName. |
int |
subtreeDepth()
Return subtree depth of this name for purposes of determining NameConstraints minimum and maximum bounds. |
String |
toString()
Convert the name into user readable string. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public OtherName(ObjectIdentifier oid,
byte[] value)
throws IOException
oid - ObjectIdentifier of this OtherName objectvalue - the DER-encoded value of the OtherName
IOException - on error
public OtherName(DerValue derValue)
throws IOException
derValue - the encoded DER OtherName.
IOException - on error.| Method Detail |
|---|
public ObjectIdentifier getOID()
public byte[] getNameValue()
public int getType()
getType in interface GeneralNameInterface
public void encode(DerOutputStream out)
throws IOException
encode in interface GeneralNameInterfaceout - the DER stream to encode the Other-Name to.
IOException - on encoding errors.public boolean equals(Object other)
equals in class Objectother - the reference object with which to compare.
Object.hashCode(),
Hashtablepublic String toString()
toString in class Objectpublic int constrains(GeneralNameInterface inputName)
constrains in interface GeneralNameInterfaceinputName - to be checked for being constrained
UnsupportedOperationException - if name is same type, but
comparison operations are not supported for this name type.public int subtreeDepth()
subtreeDepth in interface GeneralNameInterfaceUnsupportedOperationException - if not supported for this name type
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||