aicas logo Jamaica 3.4 release 8

javax.security.auth.x500
Class X500Principal

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

public final class X500Principal
extends Object
implements Principal, Serializable

See Also:
Serialized Form

Field Summary
static String CANONICAL
           
static String RFC1779
           
static String RFC2253
           
 
Constructor Summary
X500Principal(byte[] encoded)
           
X500Principal(InputStream encoded)
           
X500Principal(String name)
           
 
Method Summary
 boolean equals(Object o)
          equals compares this object to another object.
 byte[] getEncoded()
           
 String getName()
          This method returns a String that names this Principal.
 String getName(String format)
           
 int hashCode()
          hashCode returns a hash code for this object.
 String toString()
          toString creates a printable string that represents this object for debugging purposes.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CANONICAL

public static final String CANONICAL
See Also:
Constant Field Values

RFC1779

public static final String RFC1779
See Also:
Constant Field Values

RFC2253

public static final String RFC2253
See Also:
Constant Field Values
Constructor Detail

X500Principal

public X500Principal(String name)

X500Principal

public X500Principal(byte[] encoded)

X500Principal

public X500Principal(InputStream encoded)
Method Detail

hashCode

public int hashCode()
Description copied from class: Object
hashCode returns a hash code for this object. The hash code must be equal for two objects a and b if a.equals(b) is true.

The default implementation returns System.identityHashCode(this).

Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object
Returns:
a hash code value.

equals

public boolean equals(Object o)
Description copied from class: Object
equals compares this object to another object.

Equals must be symmetric (a.equals(b) == b.equals(a)), reflexive (a.equals(a)==true) and transitive (a.equals(b) && b.equals(c) IMPLIES (a.equals(c))) and not change over time (a.equals(b) == a.equals(b)). a.equals(null) should always return false.

If a.equals(b) is true for two objects a and b, then a.hashCode()==b.hashCode() must hold.

The default implementation of equals returns this==other.

Specified by:
equals in interface Principal
Overrides:
equals in class Object
Parameters:
o - the other object.
Returns:
if this and other are considered equal.

getEncoded

public byte[] getEncoded()

getName

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

Specified by:
getName in interface Principal
Returns:
the name of this Principal

getName

public String getName(String format)

toString

public String toString()
Description copied from class: Object
toString creates a printable string that represents this object for debugging purposes.

The default implementation returns getClass().getName() + '@' + Integer.toHexString(hashCode()).

Specified by:
toString in interface Principal
Overrides:
toString in class Object
Returns:
a string identifying this object.

aicas logo Jamaica 3.4 release 8

aicas GmbH, Karlsruhe - Germany    www.aicas.com
Copyright 2001-2009 aicas GmbH. All Rights Reserved.