Uses of Interface java.security.KeyStore.Entry (Java Platform SE 8 )
Date: 2026-04-17

## Uses of Interface
java.security.KeyStore.Entry

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

- - ### Uses of KeyStore.Entry in java.security

    Classes in java.security that implement KeyStore.Entry
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `KeyStore.PrivateKeyEntry` A `KeyStore` entry that holds a `PrivateKey` and corresponding certificate chain.
    `static class` | `KeyStore.SecretKeyEntry` A `KeyStore` entry that holds a `SecretKey`.
    `static class` | `KeyStore.TrustedCertificateEntry` A `KeyStore` entry that holds a trusted `Certificate`.

    Methods in java.security that return KeyStore.Entry
    Modifier and Type | Method and Description
    --- | ---
    `KeyStore.Entry` | KeyStoreSpi.`engineGetEntry(String alias, KeyStore.ProtectionParameter protParam)` Gets a `KeyStore.Entry` for the specified alias with the specified protection parameter.
    `KeyStore.Entry` | KeyStore.`getEntry(String alias, KeyStore.ProtectionParameter protParam)` Gets a keystore `Entry` for the specified alias with the specified protection parameter.

    Methods in java.security with parameters of type KeyStore.Entry
    Modifier and Type | Method and Description
    --- | ---
    `void` | KeyStoreSpi.`engineSetEntry(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter protParam)` Saves a `KeyStore.Entry` under the specified alias.
    `void` | KeyStore.`setEntry(String alias, KeyStore.Entry entry, KeyStore.ProtectionParameter protParam)` Saves a keystore `Entry` under the specified alias.

    Method parameters in java.security with type arguments of type KeyStore.Entry
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | KeyStoreSpi.`engineEntryInstanceOf(String alias, Class<? extends KeyStore.Entry> entryClass)` Determines if the keystore `Entry` for the specified `alias` is an instance or subclass of the specified `entryClass`.
    `boolean` | KeyStore.`entryInstanceOf(String alias, Class<? extends KeyStore.Entry> entryClass)` Determines if the keystore `Entry` for the specified `alias` is an instance or subclass of the specified `entryClass`.

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, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.