Class EDIPartyName
- java.lang.Object
-
- org.mozilla.jss.netscape.security.x509.EDIPartyName
-
- All Implemented Interfaces:
java.io.Serializable,GeneralNameInterface
public class EDIPartyName extends java.lang.Object implements GeneralNameInterface
This class defines the EDIPartyName of the GeneralName choice. The ASN.1 syntax for this is:EDIPartyName ::= SEQUENCE { nameAssigner [0] DirectoryString OPTIONAL, partyName [1] DirectoryString }- See Also:
GeneralName,GeneralNames,GeneralNameInterface, Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.mozilla.jss.netscape.security.x509.GeneralNameInterface
NAME_ANY, NAME_DIRECTORY, NAME_DNS, NAME_EDI, NAME_IP, NAME_OID, NAME_RFC822, NAME_URI, NAME_X400
-
-
Constructor Summary
Constructors Constructor Description 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.EDIPartyName(DerValue derValue)Create the EDIPartyName object from the passed encoded Der value.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidencode(DerOutputStream out)Encode the EDI party name into the DerOutputStream.intgetType()Return the type of the GeneralName.java.lang.StringtoString()Return the printable string.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.mozilla.jss.netscape.security.x509.GeneralNameInterface
validSingle, validSubtree
-
-
-
-
Constructor Detail
-
EDIPartyName
public EDIPartyName(java.lang.String assignerName, java.lang.String partyName)Create the EDIPartyName object from the specified names.- Parameters:
assignerName- the name of the assignerpartyName- the name of the EDI party.
-
EDIPartyName
public EDIPartyName(java.lang.String partyName)
Create the EDIPartyName object from the specified name.- Parameters:
partyName- the name of the EDI party.
-
EDIPartyName
public EDIPartyName(DerValue derValue) throws java.io.IOException
Create the EDIPartyName object from the passed encoded Der value.- Parameters:
derValue- the encoded DER EDIPartyName.- Throws:
java.io.IOException- on error.
-
-
Method Detail
-
getType
public int getType()
Return the type of the GeneralName.- Specified by:
getTypein interfaceGeneralNameInterface
-
encode
public void encode(DerOutputStream out) throws java.io.IOException
Encode the EDI party name into the DerOutputStream.- Specified by:
encodein interfaceGeneralNameInterface- Parameters:
out- the DER stream to encode the EDIPartyName to.- Throws:
java.io.IOException- on encoding errors.
-
toString
public java.lang.String toString()
Return the printable string.- Overrides:
toStringin classjava.lang.Object
-
-