Bouncy Castle Cryptography 1.11 API Specification: Class X509Principal
Bouncy Castle Cryptography 1.11

org.bouncycastle.jce
Class X509Principal

java.lang.Object
  |
  +--org.bouncycastle.asn1.x509.X509Name
        |
        +--org.bouncycastle.jce.X509Principal
All Implemented Interfaces:
DEREncodable, java.security.Principal

public class X509Principal
extends X509Name
implements java.security.Principal


Fields inherited from class org.bouncycastle.asn1.x509.X509Name
C, CN, DC, EmailAddress, L, O, OIDLookUp, OU, SN, ST, SymbolLookUp
 
Constructor Summary
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
 java.lang.String getName()
           
 
Methods inherited from class org.bouncycastle.asn1.x509.X509Name
equals, getDERObject, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Constructor Detail

X509Principal

public X509Principal(X509Name name)
Constructor from an X509Name object.

X509Principal

public X509Principal(java.util.Hashtable attributes)
constructor from a table of attributes.

it's is assumed the table contains OID/String pairs.


X509Principal

public 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.

it's is assumed the table contains OID/String pairs.


X509Principal

public X509Principal(java.util.Vector oids,
                     java.util.Vector values)
constructor from a vector of attribute values and a vector of OIDs.

X509Principal

public 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.
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface java.security.Principal

Bouncy Castle Cryptography 1.11