com.ibm.security12.sun.security.x509
Class EDIPartyName
java.lang.Object
|
+--com.ibm.security12.sun.security.x509.EDIPartyName
- public class EDIPartyName
- extends 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 }
- Version:
- 1.4
- Author:
- Hemma Prafullchandra
- See Also:
GeneralName
,
GeneralNames
,
GeneralNameInterface
Constructor Summary |
EDIPartyName(DerValue derValue)
Create the EDIPartyName object from the passed encoded Der value. |
EDIPartyName(String partyName)
Create the EDIPartyName object from the specified name. |
EDIPartyName(String assignerName,
String partyName)
Create the EDIPartyName object from the specified names. |
EDIPartyName
public EDIPartyName(String assignerName,
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(String partyName)
- Create the EDIPartyName object from the specified name.
- Parameters:
partyName
- the name of the EDI party.
EDIPartyName
public EDIPartyName(DerValue derValue)
throws IOException
- Create the EDIPartyName object from the passed encoded Der value.
- Parameters:
derValue
- the encoded DER EDIPartyName.- Throws:
- IOException - on error.
getType
public int getType()
- Return the type of the GeneralName.
- Specified by:
- getType in interface GeneralNameInterface
encode
public void encode(DerOutputStream out)
throws IOException
- Encode the EDI party name into the DerOutputStream.
- Specified by:
- encode in interface GeneralNameInterface
- Parameters:
out
- the DER stream to encode the EDIPartyName to.- Throws:
- IOException - on encoding errors.
toString
public String toString()
- Return the printable string.
- Overrides:
- toString in class Object