Android
javax.security.auth.x500
public final class

javax.security.auth.x500.X500Principal

java.lang.Object
javax.security.auth.x500.X500Principal Serializable Principal

Summary

Constants

      Value  
String  CANONICAL    "CANONICAL" 
String  RFC1779    "RFC1779" 
String  RFC2253    "RFC2253" 

Public Constructors

            X500Principal(byte[] name)
            X500Principal(InputStream in)
            X500Principal(String name)

Public Methods

          boolean  equals(Object o)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
          byte[]  getEncoded()
          String  getName()
          String  getName(String format)
          int  hashCode()
Returns an integer hash code for the receiver.
          String  toString()
Returns a string containing a concise, human-readable description of the receiver.
Methods inherited from class java.lang.Object
Methods inherited from interface java.security.Principal

Details

Constants

public static final String CANONICAL

Constant Value: "CANONICAL"

public static final String RFC1779

Constant Value: "RFC1779"

public static final String RFC2253

Constant Value: "RFC2253"

Public Constructors

public X500Principal(byte[] name)

public X500Principal(InputStream in)

public X500Principal(String name)

Public Methods

public boolean equals(Object o)

Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. The implementation in Object returns true only if the argument is the exact same object as the receiver (==).

Parameters

o Object the object to compare with this object.

Returns

  • boolean true if the object is the same as this object false if it is different from this object.

public byte[] getEncoded()

public String getName()

public String getName(String format)

public int hashCode()

Returns an integer hash code for the receiver. Any two objects which answer true when passed to .equals must answer the same value for this method.

Returns

  • int the receiver's hash.

public String toString()

Returns a string containing a concise, human-readable description of the receiver.

Returns

  • String a printable representation for the receiver.
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48