English | Site Directory

Android - An Open Handset Alliance Project

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 answers true if they represent the same object using a class specific comparison.
        String  getInfo()
    final    String  getName()
        PublicKey  getPublicKey()
    final    IdentityScope  getScope()
        int  hashCode()
Answers 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()
Answers 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 answers true if they represent the same object using a class specific comparison. The implementation in Object answers true only if the argument is the exact same object as the receiver (==).

Parameters

obj Object the object to compare with this object.

public String getInfo()

public final String getName()

public PublicKey getPublicKey()

public final IdentityScope getScope()

public int hashCode()

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

public void removeCertificate(Certificate certificate)

public void setInfo(String info)

public void setPublicKey(PublicKey key)

public String toString(boolean detailed)

public String toString()

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

Protected Methods

protected boolean identityEquals(Identity identity)

Build m5-rc15i - 10 Jun 2008 13:54