Stay organized with collections
Save and categorize content based on your preferences.
Entry
interface Entry
A marker interface for KeyStore
entry types.
Summary
Nested classes |
abstract |
An attribute associated with a keystore entry.
|
Public methods
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# KeyStore.Entry\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nEntry\n=====\n\n```\ninterface Entry\n```\n\n|-----------------------------------|\n| [java.security.KeyStore.Entry](#) |\n\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [KeyStore.PrivateKeyEntry](/reference/kotlin/java/security/KeyStore.PrivateKeyEntry), [KeyStore.SecretKeyEntry](/reference/kotlin/java/security/KeyStore.SecretKeyEntry), [KeyStore.TrustedCertificateEntry](/reference/kotlin/java/security/KeyStore.TrustedCertificateEntry), [WrappedKeyEntry](../../android/security/keystore/WrappedKeyEntry.html#) |------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------| | [KeyStore.PrivateKeyEntry](/reference/kotlin/java/security/KeyStore.PrivateKeyEntry) | A `KeyStore` entry that holds a `PrivateKey` and corresponding certificate chain. | | [KeyStore.SecretKeyEntry](/reference/kotlin/java/security/KeyStore.SecretKeyEntry) | A `KeyStore` entry that holds a `SecretKey`. | | [KeyStore.TrustedCertificateEntry](/reference/kotlin/java/security/KeyStore.TrustedCertificateEntry) | A `KeyStore` entry that holds a trusted `Certificate`. | | [WrappedKeyEntry](../../android/security/keystore/WrappedKeyEntry.html#) | An [Entry](#) that holds a wrapped key. | |\n\nA marker interface for `KeyStore` entry types.\n\nSummary\n-------\n\n| Nested classes ||\n|----------|----------------------------------------------------------------------------------------------------------------------|\n| abstract | [Attribute](/reference/kotlin/java/security/KeyStore.Entry.Attribute) An attribute associated with a keystore entry. |\n\n| Public methods ||\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|\n| open [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\\\u003c[KeyStore.Entry.Attribute](/reference/kotlin/java/security/KeyStore.Entry.Attribute)!\\\u003e! | [getAttributes](#getAttributes())`()` Retrieves the attributes associated with an entry. |\n\nPublic methods\n--------------\n\n### getAttributes\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun getAttributes(): MutableSet\u003cKeyStore.Entry.Attribute!\u003e!\n```\n\nRetrieves the attributes associated with an entry.\n\n| Return ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------|\n| [MutableSet](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-set/index.html)\u003c[KeyStore.Entry.Attribute](/reference/kotlin/java/security/KeyStore.Entry.Attribute)!\u003e! | an unmodifiable `Set` of attributes, possibly empty |"]]