| |
|
| java.lang.Object org.apache.harmony.security.x501.Name
Name | public class Name (Code) | | X.501 Name
|
Constructor Summary | |
public | Name(byte[] encoding) | public | Name(String name) |
ASN1_RDN | final public static ASN1SetOf ASN1_RDN(Code) | | According to RFC 3280 (http://www.ietf.org/rfc/rfc3280.txt)
X.501 Name structure is defined as follows:
Name ::= CHOICE {
RDNSequence }
RDNSequence ::= SEQUENCE OF RelativeDistinguishedName
RelativeDistinguishedName ::=
SET OF AttributeTypeAndValue
|
Name | public Name(byte[] encoding) throws IOException(Code) | | Creates new Name instance from its DER encoding
Parameters: encoding - - ASN.1 DER encoding throws: IOException - - if encoding is wrong |
getEncoded | public byte[] getEncoded()(Code) | | Gets encoded form of DN
return encoding, no copying is performed |
getName | public String getName(String format)(Code) | | Returns Relative Distinguished Name as String according
the format requested
Parameters: format - Name format requested Relative Distinguished Name as String accordingthe format requested |
getX500Principal | public X500Principal getX500Principal()(Code) | | Returns X500Principal instance corresponding to this
Name instance
equivalent X500Principal object |
|
|
|