public class EDIPartyName extends java.lang.Object implements GeneralNameInterface
EDIPartyName ::= SEQUENCE {
nameAssigner [0] DirectoryString OPTIONAL,
partyName [1] DirectoryString }
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 |
|---|
EDIPartyName(com.tencent.kona.sun.security.util.DerValue derValue)
Create the EDIPartyName object from the passed encoded Der value.
|
EDIPartyName(java.lang.String partyName)
Create the EDIPartyName object from the specified name.
|
EDIPartyName(java.lang.String assignerName,
java.lang.String partyName)
Create the EDIPartyName object from the specified names.
|
| Modifier and Type | Method and Description |
|---|---|
int |
constrains(GeneralNameInterface inputName)
Return constraint type:
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 EDI party name into the DerOutputStream.
|
boolean |
equals(java.lang.Object other)
Compare this EDIPartyName with another.
|
java.lang.String |
getAssignerName()
Return the assignerName
|
java.lang.String |
getPartyName()
Return the partyName
|
int |
getType()
Return the type of the GeneralName.
|
int |
hashCode()
Returns the hash code value for this EDIPartyName.
|
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()
Return the printable string.
|
public EDIPartyName(java.lang.String assignerName,
java.lang.String partyName)
assignerName - the name of the assignerpartyName - the name of the EDI party.public EDIPartyName(java.lang.String partyName)
partyName - the name of the EDI party.public EDIPartyName(com.tencent.kona.sun.security.util.DerValue derValue)
throws java.io.IOException
derValue - the encoded DER EDIPartyName.java.io.IOException - on error.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 EDIPartyName to.public java.lang.String getAssignerName()
public java.lang.String getPartyName()
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) throws java.lang.UnsupportedOperationException
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()
throws java.lang.UnsupportedOperationException
subtreeDepth in interface GeneralNameInterfacejava.lang.UnsupportedOperationException - if not supported for this name type