|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.bouncycastle.asn1.ASN1Encodable org.gudy.bouncycastle.asn1.x509.X509Name org.gudy.bouncycastle.jce.X509Principal
public class X509Principal
Field Summary |
---|
Fields inherited from class org.gudy.bouncycastle.asn1.x509.X509Name |
---|
BUSINESS_CATEGORY, C, CN, COUNTRY_OF_CITIZENSHIP, COUNTRY_OF_RESIDENCE, DATE_OF_BIRTH, DC, DefaultLookUp, DefaultReverse, DefaultSymbols, DN_QUALIFIER, E, EmailAddress, GENDER, GENERATION, GIVENNAME, INITIALS, L, NAME_AT_BIRTH, O, OIDLookUp, OU, PLACE_OF_BIRTH, POSTAL_ADDRESS, POSTAL_CODE, PSEUDONYM, RFC1779Symbols, RFC2253Symbols, SERIALNUMBER, SN, ST, STREET, SURNAME, SymbolLookUp, T, UID, UNIQUE_IDENTIFIER, UnstructuredAddress, UnstructuredName |
Fields inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable |
---|
BER, DER |
Constructor Summary | |
---|---|
X509Principal(boolean reverse,
java.util.Hashtable lookUp,
java.lang.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,
java.lang.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(java.util.Hashtable attributes)
constructor from a table of attributes. |
|
X509Principal(java.lang.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(java.util.Vector ordering,
java.util.Hashtable attributes)
constructor from a table of attributes and a vector giving the specific ordering required for encoding or conversion to a string. |
|
X509Principal(java.util.Vector oids,
java.util.Vector values)
constructor from a vector of attribute values and a vector of OIDs. |
|
X509Principal(X509Name name)
Constructor from an X509Name object. |
Method Summary | |
---|---|
byte[] |
getEncoded()
return a DER encoded byte array representing this object |
java.lang.String |
getName()
|
Methods inherited from class org.gudy.bouncycastle.asn1.x509.X509Name |
---|
equals, equals, getInstance, getInstance, getOIDs, getValues, getValues, hashCode, toASN1Object, toString, toString |
Methods inherited from class org.gudy.bouncycastle.asn1.ASN1Encodable |
---|
getDEREncoded, getDERObject, getEncoded |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
equals, hashCode, toString |
Constructor Detail |
---|
public X509Principal(byte[] bytes) throws java.io.IOException
java.io.IOException
public X509Principal(X509Name name)
public X509Principal(java.util.Hashtable attributes)
it's is assumed the table contains OID/String pairs.
public X509Principal(java.util.Vector ordering, java.util.Hashtable attributes)
it's is assumed the table contains OID/String pairs.
public X509Principal(java.util.Vector oids, java.util.Vector values)
public X509Principal(java.lang.String dirName)
public X509Principal(boolean reverse, java.lang.String dirName)
public X509Principal(boolean reverse, java.util.Hashtable lookUp, java.lang.String dirName)
If reverse is true, create the encoded version of the sequence starting from the last element in the string.
Method Detail |
---|
public java.lang.String getName()
getName
in interface java.security.Principal
public byte[] getEncoded()
getEncoded
in class ASN1Encodable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |