| |
|
| java.lang.Object sun.security.x509.EDIPartyName
EDIPartyName | public class EDIPartyName implements GeneralNameInterface(Code) | | 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 }
author: Hemma Prafullchandra version: 1.6 See Also: GeneralName See Also: GeneralNames See Also: GeneralNameInterface |
Constructor Summary | |
public | EDIPartyName(String assignerName, String partyName) Create the EDIPartyName object from the specified names. | public | EDIPartyName(String partyName) Create the EDIPartyName object from the specified name. | public | EDIPartyName(DerValue derValue) Create the EDIPartyName object from the passed encoded Der value. |
EDIPartyName | public EDIPartyName(String assignerName, String partyName)(Code) | | Create the EDIPartyName object from the specified names.
Parameters: assignerName - the name of the assigner Parameters: partyName - the name of the EDI party. |
EDIPartyName | public EDIPartyName(String partyName)(Code) | | Create the EDIPartyName object from the specified name.
Parameters: partyName - the name of the EDI party. |
EDIPartyName | public EDIPartyName(DerValue derValue) throws IOException(Code) | | Create the EDIPartyName object from the passed encoded Der value.
Parameters: derValue - the encoded DER EDIPartyName. exception: IOException - on error. |
constrains | public int constrains(GeneralNameInterface inputName) throws UnsupportedOperationException(Code) | | Return constraint type:
- NAME_DIFF_TYPE = -1: input name is different type from name (i.e. does not constrain)
- NAME_MATCH = 0: input name matches name
- NAME_NARROWS = 1: input name narrows name
- NAME_WIDENS = 2: input name widens name
- NAME_SAME_TYPE = 3: input name does not match or narrow name, but is same type
. These results are used in checking NameConstraints during
certification path verification.
Parameters: inputName - to be checked for being constrained throws: UnsupportedOperationException - if name is same type, but comparison operations arenot supported for this name type. |
encode | public void encode(DerOutputStream out) throws IOException(Code) | | Encode the EDI party name into the DerOutputStream.
Parameters: out - the DER stream to encode the EDIPartyName to. exception: IOException - on encoding errors. |
equals | public boolean equals(Object other)(Code) | | Compare this EDIPartyName with another. Does a byte-string
comparison without regard to type of the partyName and
the assignerName.
|
getAssignerName | public String getAssignerName()(Code) | | Return the assignerName
|
getPartyName | public String getPartyName()(Code) | | Return the partyName
|
getType | public int getType()(Code) | | Return the type of the GeneralName.
|
toString | public String toString()(Code) | | Return the printable string.
|
|
|
|