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 }
- Version:
- 1.2
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private String
private static final long
private static final byte
private static final byte
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 TypeMethodDescriptionvoid
encode
(DerOutputStream out) Encode the EDI party name into the DerOutputStream.int
getType()
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, wait
Methods inherited from interface org.mozilla.jss.netscape.security.x509.GeneralNameInterface
validSingle, validSubtree
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
TAG_ASSIGNER
private static final byte TAG_ASSIGNER- See Also:
-
TAG_PARTYNAME
private static final byte TAG_PARTYNAME- See Also:
-
assigner
-
party
-
-
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:
getType
in interfaceGeneralNameInterface
-
encode
Encode the EDI party name into the DerOutputStream.- Specified by:
encode
in interfaceGeneralNameInterface
- Parameters:
out
- the DER stream to encode the EDIPartyName to.- Throws:
IOException
- on encoding errors.
-
toString
Return the printable string.
-