Module java.base
Package java.security

# Class Identity

=
@Deprecated(since="1.2"forRemoval=true)
public abstract class Identity
extends java.lang.Object
implements java.io.Serializable, java.security.Principal

## Constructors

- =
  protected Identity()
- =
  public Identity(java.lang.String arg0)
- =
  public Identity(java.lang.String arg0, java.security.IdentityScope arg1) throws java.security.KeyManagementException

## Methods

- =
  public void addCertificate(java.security.Certificate arg0) throws java.security.KeyManagementException
- =
  public java.security.Certificate[] certificates()
- =
  public final boolean equals(java.lang.Object arg0)
- =
  public java.lang.String getInfo()
- =
  public final java.lang.String getName()
- =
  public java.security.PublicKey getPublicKey()
- =
  public final java.security.IdentityScope getScope()
- =
  public int hashCode()
- =
  protected boolean identityEquals(java.security.Identity arg0)
- =
  public void removeCertificate(java.security.Certificate arg0) throws java.security.KeyManagementException
- =
  public void setInfo(java.lang.String arg0)
- =
  public void setPublicKey(java.security.PublicKey arg0) throws java.security.KeyManagementException
- =
  public java.lang.String toString()
- =
  public java.lang.String toString(boolean arg0)

## Serialized Form

=

### serialVersionUID

=3609922007826600659

### Serialized Fields

- =
  java.util.Vector<java.security.Certificate> certificates
- =
  java.lang.String info
- =
  java.lang.String name
- =
  java.security.PublicKey publicKey
- =
  java.security.IdentityScope scope

## Summary

No differences.