Android
java.security
public abstract class

java.security.Identity

java.lang.Object
java.security.Identity Serializable Principal
Known Direct Subclasses

Summary

Public Constructors

            Identity(String name)
            Identity(String name, IdentityScope scope)

Protected Constructors

            Identity()

Public Methods

          void  addCertificate(Certificate certificate)
          Certificate[]  certificates()
    final      boolean  equals(Object obj)
Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison.
          String  getInfo()
    final      String  getName()
          PublicKey  getPublicKey()
    final      IdentityScope  getScope()
          int  hashCode()
Returns an integer hash code for the receiver.
          void  removeCertificate(Certificate certificate)
          void  setInfo(String info)
          void  setPublicKey(PublicKey key)
          String  toString(boolean detailed)
          String  toString()
Returns a string containing a concise, human-readable description of the receiver.

Protected Methods

          boolean  identityEquals(Identity identity)
Methods inherited from class java.lang.Object
Methods inherited from interface java.security.Principal

Details

Public Constructors

public Identity(String name)

public Identity(String name, IdentityScope scope)

Protected Constructors

protected Identity()

Public Methods

public void addCertificate(Certificate certificate)

public Certificate[] certificates()

public final boolean equals(Object obj)

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

obj 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 String getInfo()

public final String getName()

public PublicKey getPublicKey()

public final IdentityScope getScope()

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 void removeCertificate(Certificate certificate)

public void setInfo(String info)

public void setPublicKey(PublicKey key)

public String toString(boolean detailed)

public String toString()

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

Returns

  • String a printable representation for the receiver.

Protected Methods

protected boolean identityEquals(Identity identity)

Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56