## Uses of Class
java.security.Identity

- Packages that use Identity
  Package | Description
  --- | ---
  java.security | Provides the classes and interfaces for the security framework.

- - ### Uses of Identity in java.security

    Subclasses of Identity in java.security
    Modifier and Type | Class and Description
    --- | ---
    `class` | `IdentityScope` Deprecated. This class is no longer used. Its functionality has been replaced by `java.security.KeyStore`, the `java.security.cert` package, and `java.security.Principal`.
    `class` | `Signer` Deprecated. This class is no longer used. Its functionality has been replaced by `java.security.KeyStore`, the `java.security.cert` package, and `java.security.Principal`.

    Methods in java.security that return Identity
    Modifier and Type | Method and Description
    --- | ---
    `Identity` | IdentityScope.`getIdentity(Principal principal)` Deprecated. Retrieves the identity whose name is the same as that of the specified principal.
    `abstract Identity` | IdentityScope.`getIdentity(PublicKey key)` Deprecated. Retrieves the identity with the specified public key.
    `abstract Identity` | IdentityScope.`getIdentity(String name)` Deprecated. Returns the identity in this scope with the specified name (if any).

    Methods in java.security that return types with arguments of type Identity
    Modifier and Type | Method and Description
    --- | ---
    `abstract Enumeration<Identity>` | IdentityScope.`identities()` Deprecated. Returns an enumeration of all identities in this identity scope.

    Methods in java.security with parameters of type Identity
    Modifier and Type | Method and Description
    --- | ---
    `abstract void` | IdentityScope.`addIdentity(Identity identity)` Deprecated. Adds an identity to this identity scope.
    `protected boolean` | Identity.`identityEquals(Identity identity)` Deprecated. Tests for equality between the specified identity and this identity.
    `abstract void` | IdentityScope.`removeIdentity(Identity identity)` Deprecated. Removes an identity from this identity scope.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. All rights reserved.