加载中...
The Wayback Machine - https://sup1a9wrlpyh5li9ro.vcoronado.top/web/20090326194306/http://developer.android.com:80/reference/java/security/Identity.html
public abstract class

Identity

extends Object
implements Serializable Principal
java.lang.Object
   ↳ java.security.Identity
Known Direct Subclasses

This class is deprecated.No replacement.

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)
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.security.Principal

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)