API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.security. Identity View Source
Author(s)
Benjamin Renaud
Since
Version
1.62
Serial
Hierarchy
 Object
      Identity
Implements
 Principal
 Serializable
Subclasses
Description
@Deprecated
publicabstract abstract class Identity
  This class represents identities: real-world objects such as people, companies or organizations whose identities can be authenticated using their public keys.
See also:    IdentityScope Signer Principal
Constructors
protected Identity ()
Constructor for serialization only.
public Identity (String name)
  Constructs an identity with the specified name and no scope.
public Identity (String name, IdentityScope scope) throws KeyManagementException
  Constructs an identity with the specified name and scope.
Methods
Hide/Show inherited methods
public void addCertificate (Certificate certificate) throws KeyManagementException
  Adds a certificate for this identity.
public Certificate certificates ()
  Returns a copy of all the certificates for this identity.
publicfinal boolean equals (Object identity) [Specified in Principal]
  Tests for equality between the specified object and this identity.
pack-private String fullName ()
Returns a parsable name for identity: identityName.scopeName
public String getInfo ()
  Returns general information previously specified for this identity.
publicfinal String getName () [Specified in Principal]
  Returns this identity's name.
public PublicKey getPublicKey ()
  Returns this identity's public key.
publicfinal IdentityScope getScope ()
  Returns this identity's scope.
public int hashCode () [Specified in Principal]
  Returns a hashcode for this identity.
protected boolean identityEquals (Identity identity)
  Tests for equality between the specified identity and this identity.
pack-private String printCertificates ()
pack-private String printKeys ()
public void removeCertificate (Certificate certificate) throws KeyManagementException
  Removes a certificate from this identity.
public void setInfo (String info)
  Specifies a general information string for this identity.
public void setPublicKey (PublicKey key) throws KeyManagementException
  Sets this identity's public key.
public String toString () [Specified in Principal]
  Returns a short string describing this identity, telling its name and its scope (if any).
public String toString (boolean detailed)
  Returns a string representation of this identity, with optionally more details than that provided by the toString method without any arguments.
Fields
Hide/Show inherited fields
pack-private Vector certificates
The certificates for this identity.
pack-private String info
Generic, descriptive information about the identity.
pack-private IdentityScope scope
The scope of the identity.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar