Added in API level 1
Summary: Nested Classes | Methods
KeyStore.Entry
public static interface KeyStore.Entry
java.security.KeyStore.Entry |
A marker interface for KeyStore
entry types.
Summary
Nested classes | |
---|---|
interface | KeyStore.Entry.Attribute An attribute associated with a keystore entry. |
Public methods | |
---|---|
default Set<KeyStore.Entry.Attribute> | getAttributes() Retrieves the attributes associated with an entry. |
Public methods
getAttributes
Added in API level 26
public Set<KeyStore.Entry.Attribute> getAttributes ()
Retrieves the attributes associated with an entry.
Implementation Requirements:
- The default implementation returns an empty
Set
.
Returns | |
---|---|
Set<KeyStore.Entry.Attribute> | an unmodifiable Set of attributes, possibly empty |
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](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Nested Classes](#nestedclasses) \\| [Methods](#pubmethods) \n\nKeyStore.Entry\n==============\n\n\n`\npublic\nstatic\n\n\ninterface\nKeyStore.Entry\n`\n\n\n`\n\n\n`\n\n|------------------------------|\n| java.security.KeyStore.Entry |\n\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [KeyStore.PrivateKeyEntry](/reference/java/security/KeyStore.PrivateKeyEntry), [KeyStore.SecretKeyEntry](/reference/java/security/KeyStore.SecretKeyEntry), [KeyStore.TrustedCertificateEntry](/reference/java/security/KeyStore.TrustedCertificateEntry), [WrappedKeyEntry](/reference/android/security/keystore/WrappedKeyEntry) |-----------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------| | [KeyStore.PrivateKeyEntry](/reference/java/security/KeyStore.PrivateKeyEntry) | A `KeyStore` entry that holds a `PrivateKey` and corresponding certificate chain. | | [KeyStore.SecretKeyEntry](/reference/java/security/KeyStore.SecretKeyEntry) | A `KeyStore` entry that holds a `SecretKey`. | | [KeyStore.TrustedCertificateEntry](/reference/java/security/KeyStore.TrustedCertificateEntry) | A `KeyStore` entry that holds a trusted `Certificate`. | | [WrappedKeyEntry](/reference/android/security/keystore/WrappedKeyEntry) | An [Entry](/reference/java/security/KeyStore.Entry) that holds a wrapped key. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nA marker interface for `KeyStore` entry types.\n\nSummary\n-------\n\n| ### Nested classes ||\n|--------------|------------------------------------------------------------------------------------------------------------------------------|\n| ` interface` | [KeyStore.Entry.Attribute](/reference/java/security/KeyStore.Entry.Attribute) An attribute associated with a keystore entry. |\n\n| ### Public methods ||\n|-------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| ` default `[Set](/reference/java/util/Set)`\u003c`[KeyStore.Entry.Attribute](/reference/java/security/KeyStore.Entry.Attribute)`\u003e` | ` `[getAttributes](/reference/java/security/KeyStore.Entry#getAttributes())`() ` Retrieves the attributes associated with an entry. |\n\nPublic methods\n--------------\n\n### getAttributes\n\nAdded in [API level 26](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic Set\u003cKeyStore.Entry.Attribute\u003e getAttributes ()\n```\n\nRetrieves the attributes associated with an entry.\n\n\u003cbr /\u003e\n\n##### Implementation Requirements:\n\n- The default implementation returns an empty `Set`.\n\n| Returns ||\n|--------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------|\n| [Set](/reference/java/util/Set)`\u003c`[KeyStore.Entry.Attribute](/reference/java/security/KeyStore.Entry.Attribute)`\u003e` | an unmodifiable `Set` of attributes, possibly empty \u003cbr /\u003e |"]]