|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.geronimo.util.asn1.ASN1Encodable org.apache.geronimo.util.asn1.x509.X509Name org.apache.geronimo.util.jce.X509Principal
public class X509Principal
Field Summary |
---|
Fields inherited from class org.apache.geronimo.util.asn1.x509.X509Name |
---|
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 |
Constructor Summary | |
---|---|
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. |
|
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(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(X509Name name)
Constructor from an X509Name object. |
Method Summary | |
---|---|
byte[] |
getEncoded()
return a DER encoded byte array representing this object |
String |
getName()
|
Methods inherited from class org.apache.geronimo.util.asn1.x509.X509Name |
---|
equals, equals, getInstance, getInstance, getOIDs, getValues, hashCode, toASN1Object, toString, toString |
Methods inherited from class org.apache.geronimo.util.asn1.ASN1Encodable |
---|
getDERObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.security.Principal |
---|
equals, hashCode, toString |
Constructor Detail |
---|
public X509Principal(byte[] bytes) throws IOException
IOException
public X509Principal(X509Name name)
public X509Principal(Hashtable attributes)
it's is assumed the table contains OID/String pairs.
public X509Principal(Vector ordering, Hashtable attributes)
it's is assumed the table contains OID/String pairs.
public X509Principal(Vector oids, Vector values)
public X509Principal(String dirName)
public X509Principal(boolean reverse, String dirName)
public X509Principal(boolean reverse, Hashtable lookUp, String dirName)
If reverse is true, create the encoded version of the sequence starting from the last element in the string.
Method Detail |
---|
public String getName()
getName
in interface Principal
public byte[] getEncoded()
getEncoded
in class ASN1Encodable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |