Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.security.auth.x500
Class X500Principal  view X500Principal download X500Principal.java

java.lang.Object
  extended byjavax.security.auth.x500.X500Principal
All Implemented Interfaces:
java.security.Principal, java.io.Serializable

public final class X500Principal
extends java.lang.Object
implements java.security.Principal, java.io.Serializable


Field Summary
private static gnu.java.security.OID C
           
static java.lang.String CANONICAL
           
private static gnu.java.security.OID CN
           
private  java.util.List components
           
private  java.util.Map currentRdn
           
private static gnu.java.security.OID DC
           
private  byte[] encoded
           
private  boolean fixed
           
private static gnu.java.security.OID L
           
private static gnu.java.security.OID O
           
private static gnu.java.security.OID OU
           
static java.lang.String RFC1779
           
static java.lang.String RFC2253
           
private  int sep
           
private static long serialVersionUID
           
private static gnu.java.security.OID ST
           
private static gnu.java.security.OID STREET
           
private static gnu.java.security.OID UID
           
 
Constructor Summary
private X500Principal()
           
  X500Principal(byte[] encoded)
           
  X500Principal(java.io.InputStream encoded)
           
  X500Principal(java.lang.String name)
           
 
Method Summary
private static java.lang.String compressWS(java.lang.String str)
           
private  void encodeDer()
           
 boolean equals(java.lang.Object o)
          This method tests another Principal object for equality with this one.
private  java.lang.String getComponent(gnu.java.security.OID oid, int rdn)
           
 byte[] getEncoded()
           
 java.lang.String getName()
          This method returns a String that names this Principal.
 java.lang.String getName(java.lang.String format)
           
 int hashCode()
          This method returns a hash code value for this Principal.
private  void newRelativeDistinguishedName()
           
private  void parseDer(java.io.InputStream encoded)
           
private  void parseString(java.lang.String str)
           
private  void putComponent(gnu.java.security.OID oid, java.lang.String value)
           
private  void putComponent(java.lang.String name, java.lang.String value)
           
private  java.lang.String readAttributeType(java.io.Reader in)
           
private  java.lang.String readAttributeValue(java.io.Reader in)
           
private  void readObject(java.io.ObjectInputStream in)
           
private  int size()
           
private static byte[] toByteArray(java.lang.String str)
           
 java.lang.String toString()
          This method returns a String representation of this Principal.
private  void writeObject(java.io.ObjectOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

CANONICAL

public static final java.lang.String CANONICAL
See Also:
Constant Field Values

RFC1779

public static final java.lang.String RFC1779
See Also:
Constant Field Values

RFC2253

public static final java.lang.String RFC2253
See Also:
Constant Field Values

CN

private static final gnu.java.security.OID CN

C

private static final gnu.java.security.OID C

L

private static final gnu.java.security.OID L

ST

private static final gnu.java.security.OID ST

STREET

private static final gnu.java.security.OID STREET

O

private static final gnu.java.security.OID O

OU

private static final gnu.java.security.OID OU

DC

private static final gnu.java.security.OID DC

UID

private static final gnu.java.security.OID UID

components

private transient java.util.List components

currentRdn

private transient java.util.Map currentRdn

fixed

private transient boolean fixed

encoded

private transient byte[] encoded

sep

private int sep
Constructor Detail

X500Principal

private X500Principal()

X500Principal

public X500Principal(java.lang.String name)

X500Principal

public X500Principal(byte[] encoded)

X500Principal

public X500Principal(java.io.InputStream encoded)
Method Detail

hashCode

public int hashCode()
Description copied from interface: java.security.Principal
This method returns a hash code value for this Principal. Remember the contract of hashCode - two objects which compare as equals() must have the same hashCode().

Specified by:
hashCode in interface java.security.Principal

equals

public boolean equals(java.lang.Object o)
Description copied from interface: java.security.Principal
This method tests another Principal object for equality with this one.

Specified by:
equals in interface java.security.Principal

getEncoded

public byte[] getEncoded()

getName

public java.lang.String getName()
Description copied from interface: java.security.Principal
This method returns a String that names this Principal.

Specified by:
getName in interface java.security.Principal

getName

public java.lang.String getName(java.lang.String format)

toString

public java.lang.String toString()
Description copied from interface: java.security.Principal
This method returns a String representation of this Principal.

Specified by:
toString in interface java.security.Principal

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.io.NotActiveException,
                        java.lang.ClassNotFoundException

size

private int size()

getComponent

private java.lang.String getComponent(gnu.java.security.OID oid,
                                      int rdn)

encodeDer

private void encodeDer()

parseString

private void parseString(java.lang.String str)
                  throws java.io.IOException

readAttributeType

private java.lang.String readAttributeType(java.io.Reader in)
                                    throws java.io.IOException

readAttributeValue

private java.lang.String readAttributeValue(java.io.Reader in)
                                     throws java.io.IOException

parseDer

private void parseDer(java.io.InputStream encoded)
               throws java.io.IOException

newRelativeDistinguishedName

private void newRelativeDistinguishedName()

putComponent

private void putComponent(gnu.java.security.OID oid,
                          java.lang.String value)

putComponent

private void putComponent(java.lang.String name,
                          java.lang.String value)

compressWS

private static java.lang.String compressWS(java.lang.String str)

toByteArray

private static byte[] toByteArray(java.lang.String str)