Name

Class java.security.Identity

Description

An identity encapsulates public knowledge about an entity (that is, a person or a corporation, or anything that could hold a public key). Identities have names and may hold a public key, along with a certificate chain to validate the public key. An identity may belong to an identity scope, but this feature is optional and is not typically used.

Class Definition

public class java.security.Identity
  extends java.lang.Object
  implements java.security.Principal, java.io.Serializable {

  // Constructors
  protected Identity();
  public Identity(String);
  public Identity(String, String, Certificate[], PublicKey);
  public Identity(String, IdentityScope);

  // Instance Methods
  public void addCertificate(Certificate);
  public final boolean equals(Object);
  public Certificate[] getCertificates();
  public String getInfo();
  public final String getName();
  public PublicKey getPublicKey();
  public final IdentityScope getScope();
  public int hashCode();
  public void removeCertificate(Certificate);
  public void setInfo(String);
  public void setPublicKey(PublicKey);
  public String toString();
  public String toString(boolean);

  // Protected Instance Methods
  protected boolean identityEquals(Identity);
}

See Also

Certificate, IdentityScope, Principal, PublicKey

Get Java Cryptography now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.