org.bouncycastle.jce
Class X509Principal
- Principal, DEREncodable
public class X509Principal
implements Principal
C , CN , DC , DefaultLookUp , DefaultReverse , DefaultSymbols , E , EmailAddress , GENERATION , GIVENNAME , INITIALS , L , O , OIDLookUp , OU , RFC2253Symbols , SN , ST , SURNAME , SymbolLookUp , T , UID , UNIQUE_IDENTIFIER , UnstructuredAddress , UnstructuredName |
X509Principal(Hashtable attributes) - constructor from a table of attributes.
|
X509Principal(String dirName) - takes an X509 dir name as a string of the format "C=AU,ST=Victoria", or
some such, converting it into an ordered set of name attributes.
|
X509Principal(Vector ordering, Hashtable attributes) - constructor from a table of attributes and a vector giving the
specific ordering required for encoding or conversion to a string.
|
X509Principal(Vector oids, Vector values) - constructor from a vector of attribute values and a vector of OIDs.
|
X509Principal(boolean reverse, Hashtable lookUp, String dirName) - Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or
some such, converting it into an ordered set of name attributes.
|
X509Principal(boolean reverse, String dirName) - Takes an X509 dir name as a string of the format "C=AU,ST=Victoria", or
some such, converting it into an ordered set of name attributes.
|
X509Principal(byte[] bytes) - Constructor from an encoded byte array.
|
X509Principal(X509Name name) - Constructor from an X509Name object.
|
byte[] | getEncoded() - return a DER encoded byte array representing this object
|
String | getName()
|
X509Principal
public X509Principal(Hashtable attributes)
constructor from a table of attributes.
it's is assumed the table contains OID/String pairs.
X509Principal
public X509Principal(String dirName)
takes an X509 dir name as a string of the format "C=AU,ST=Victoria", or
some such, converting it into an ordered set of name attributes.
X509Principal
public X509Principal(Vector ordering,
Hashtable attributes)
constructor from a table of attributes and a vector giving the
specific ordering required for encoding or conversion to a string.
it's is assumed the table contains OID/String pairs.
X509Principal
public X509Principal(Vector oids,
Vector values)
constructor from a vector of attribute values and a vector of OIDs.
X509Principal
public X509Principal(boolean reverse,
Hashtable lookUp,
String dirName)
Takes an X509 dir name as a string of the format "C=AU, ST=Victoria", or
some such, converting it into an ordered set of name attributes. lookUp
should provide a table of lookups, indexed by lowercase only strings and
yielding a DERObjectIdentifier, other than that OID. and numeric oids
will be processed automatically.
If reverse is true, create the encoded version of the sequence starting
from the last element in the string.
X509Principal
public X509Principal(boolean reverse,
String dirName)
Takes an X509 dir name as a string of the format "C=AU,ST=Victoria", or
some such, converting it into an ordered set of name attributes. If reverse
is false the dir name will be encoded in the order of the (name, value) pairs
presented, otherwise the encoding will start with the last (name, value) pair
and work back.
X509Principal
public X509Principal(byte[] bytes)
throws IOException
Constructor from an encoded byte array.
X509Principal
public X509Principal(X509Name name)
Constructor from an X509Name object.
getEncoded
public byte[] getEncoded()
return a DER encoded byte array representing this object
- getEncoded in interface ASN1Encodable
getName
public String getName()