Class EDIPartyName
java.lang.Object
org.mozilla.jss.netscape.security.x509.EDIPartyName
- All Implemented Interfaces:
Serializable,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 }
-
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
ConstructorsConstructorDescriptionEDIPartyName(String partyName) Create the EDIPartyName object from the specified name.EDIPartyName(String assignerName, 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
Modifier and TypeMethodDescriptionvoidencode(DerOutputStream out) Encode the EDI party name into the DerOutputStream.intgetType()Return the type of the GeneralName.toString()Return the printable string.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.mozilla.jss.netscape.security.x509.GeneralNameInterface
validSingle, validSubtree
-
Constructor Details
-
EDIPartyName
Create the EDIPartyName object from the specified names.- Parameters:
assignerName- the name of the assignerpartyName- the name of the EDI party.
-
EDIPartyName
Create the EDIPartyName object from the specified name.- Parameters:
partyName- the name of the EDI party.
-
EDIPartyName
Create the EDIPartyName object from the passed encoded Der value.- Parameters:
derValue- the encoded DER EDIPartyName.- Throws:
IOException- on error.
-
-
Method Details
-
getType
public int getType()Return the type of the GeneralName.- Specified by:
getTypein interfaceGeneralNameInterface
-
encode
Encode the EDI party name into the DerOutputStream.- Specified by:
encodein interfaceGeneralNameInterface- Parameters:
out- the DER stream to encode the EDIPartyName to.- Throws:
IOException- on encoding errors.
-
toString
Return the printable string.
-