public class X509Principal extends X509Name implements java.security.Principal
Objects of this type can be created from certificates and CRLs using the PrincipalUtil class.
PrincipalUtilBUSINESS_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, UnstructuredNameBER, DER| Constructor and Description |
|---|
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. 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,
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.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getEncoded()
return a DER encoded byte array representing this object
|
java.lang.String |
getName() |
private static ASN1Sequence |
readSequence(ASN1InputStream aIn) |
equals, equals, getInstance, getInstance, getOIDs, getValues, getValues, hashCode, toASN1Object, toString, toString, toStringgetDEREncoded, getDERObject, getEncodedpublic X509Principal(byte[] bytes)
throws java.io.IOException
java.io.IOExceptionpublic 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.
private static ASN1Sequence readSequence(ASN1InputStream aIn) throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getName()
getName in interface java.security.Principalpublic byte[] getEncoded()
getEncoded in class ASN1EncodableCopyright © 1998-2014 Gamma Technologies. All Rights Reserved.