public class OtherName extends java.lang.Object implements GeneralNameInterface
OtherName ::= SEQUENCE {
type-id OBJECT IDENTIFIER,
value [0] EXPLICIT ANY DEFINED BY type-id
}
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 and Description |
|---|
OtherName(com.tencent.kona.sun.security.util.DerValue derValue)
Create the OtherName object from the passed encoded Der value.
|
OtherName(com.tencent.kona.sun.security.util.ObjectIdentifier oid,
byte[] value)
Create the OtherName object from a passed ObjectIdentifier and
byte array name value
|
| Modifier and Type | Method and Description |
|---|---|
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(com.tencent.kona.sun.security.util.DerOutputStream out)
Encode the Other name into the DerOutputStream.
|
boolean |
equals(java.lang.Object other)
Compares this name with another, for equality.
|
byte[] |
getNameValue()
Get name value
|
com.tencent.kona.sun.security.util.ObjectIdentifier |
getOID()
Get ObjectIdentifier
|
int |
getType()
Return the type of the GeneralName.
|
int |
hashCode()
Returns the hash code for this OtherName.
|
int |
subtreeDepth()
Return subtree depth of this name for purposes of determining
NameConstraints minimum and maximum bounds.
|
java.lang.String |
toString()
Convert the name into user readable string.
|
public OtherName(com.tencent.kona.sun.security.util.ObjectIdentifier oid,
byte[] value)
throws java.io.IOException
oid - ObjectIdentifier of this OtherName objectvalue - the DER-encoded value of the OtherNamejava.io.IOException - on errorpublic OtherName(com.tencent.kona.sun.security.util.DerValue derValue)
throws java.io.IOException
derValue - the encoded DER OtherName.java.io.IOException - on error.public com.tencent.kona.sun.security.util.ObjectIdentifier getOID()
public byte[] getNameValue()
public int getType()
getType in interface GeneralNameInterfacepublic void encode(com.tencent.kona.sun.security.util.DerOutputStream out)
encode in interface com.tencent.kona.sun.security.util.DerEncoderout - the DER stream to encode the Other-Name to.public boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int constrains(GeneralNameInterface inputName)
constrains in interface GeneralNameInterfaceinputName - to be checked for being constrainedjava.lang.UnsupportedOperationException - if name is same type, but
comparison operations are not supported for this name type.public int subtreeDepth()
subtreeDepth in interface GeneralNameInterfacejava.lang.UnsupportedOperationException - if not supported for this name type