public class OIDName extends java.lang.Object implements GeneralNameInterface
GeneralName,
GeneralNames,
GeneralNameInterfaceNAME_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 |
|---|
OIDName(DerValue derValue)
Create the OIDName object from the passed encoded Der value.
|
OIDName(ObjectIdentifier oid)
Create the OIDName object with the specified name.
|
OIDName(java.lang.String name)
Create the OIDName from the String form of the OID
|
| 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(DerOutputStream out)
Encode the OID name into the DerOutputStream.
|
boolean |
equals(java.lang.Object obj)
Compares this name with another, for equality.
|
ObjectIdentifier |
getOID()
Returns this OID name.
|
int |
getType()
Return the type of the GeneralName.
|
int |
hashCode()
Returns the hash code value for this object.
|
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.
|
java.lang.String |
toString()
Convert the name into user readable string.
|
public OIDName(DerValue derValue) throws java.io.IOException
derValue - the encoded DER OIDName.java.io.IOException - on error.public OIDName(ObjectIdentifier oid)
name - the OIDName.public OIDName(java.lang.String name)
throws java.io.IOException
name - the OIDName in form "x.y.z..."java.io.IOException - on errorpublic int getType()
getType in interface GeneralNameInterfacepublic void encode(DerOutputStream out) throws java.io.IOException
encode in interface GeneralNameInterfaceout - the DER stream to encode the OIDName to.java.io.IOException - on encoding errors.public java.lang.String toString()
toString in class java.lang.Objectpublic ObjectIdentifier getOID()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int constrains(GeneralNameInterface inputName) throws java.lang.UnsupportedOperationException
constrains in interface GeneralNameInterfaceinputName - to be checked for being constrainedjava.lang.UnsupportedOperationException - if name is not exact match, but narrowing and widening are
not supported for this name type.public int subtreeDepth()
throws java.lang.UnsupportedOperationException
subtreeDepth in interface GeneralNameInterfacejava.lang.UnsupportedOperationException - if not supported for this name typeCopyright © 2020. All Rights Reserved.