KeyStore.Entry
Stay organized with collections
Save and categorize content based on your preferences.
Known Indirect Subclasses
|
A marker interface for KeyStore
entry types.
Public Methods
Retrieves the attributes associated with an entry.
The default implementation returns an empty Set
.
Returns
- an unmodifiable
Set
of attributes, possibly empty
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-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 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eKeyStore.Entry\u003c/code\u003e is a marker interface for different types of entries within a \u003ccode\u003eKeyStore\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt has known indirect subclasses like \u003ccode\u003ePrivateKeyEntry\u003c/code\u003e, \u003ccode\u003eSecretKeyEntry\u003c/code\u003e, and \u003ccode\u003eTrustedCertificateEntry\u003c/code\u003e for storing different kinds of security credentials.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetAttributes()\u003c/code\u003e method allows retrieval of entry-specific attributes, returning an empty set by default.\u003c/p\u003e\n"],["\u003cp\u003eA nested interface, \u003ccode\u003eKeyStore.Entry.Attribute\u003c/code\u003e, is used to represent attributes associated with a keystore entry.\u003c/p\u003e\n"]]],["`KeyStore.Entry` is a marker interface for keystore entry types, with subclasses `PrivateKeyEntry`, `SecretKeyEntry`, and `TrustedCertificateEntry`. These entries hold a private key with a certificate chain, a secret key, and a trusted certificate, respectively. Entries can have attributes represented by the `KeyStore.Entry.Attribute` interface. The `getAttributes()` method retrieves an unmodifiable set of these attributes, which defaults to an empty set.\n"],null,["# KeyStore.Entry\n\npublic static interface **KeyStore.Entry** \n\n|---|---|---|\n| Known Indirect Subclasses [KeyStore.PrivateKeyEntry](../../../reference/java/security/KeyStore.PrivateKeyEntry.html), [KeyStore.SecretKeyEntry](../../../reference/java/security/KeyStore.SecretKeyEntry.html), [KeyStore.TrustedCertificateEntry](../../../reference/java/security/KeyStore.TrustedCertificateEntry.html) |------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------| | [KeyStore.PrivateKeyEntry](../../../reference/java/security/KeyStore.PrivateKeyEntry.html) | A `KeyStore` entry that holds a `PrivateKey` and corresponding certificate chain. | | [KeyStore.SecretKeyEntry](../../../reference/java/security/KeyStore.SecretKeyEntry.html) | A `KeyStore` entry that holds a `SecretKey`. | | [KeyStore.TrustedCertificateEntry](../../../reference/java/security/KeyStore.TrustedCertificateEntry.html) | A `KeyStore` entry that holds a trusted `Certificate`. | |||\n\nA marker interface for `KeyStore` entry types. \n\n### Nested Class Summary\n\n|-----------|---|---|------------------------------------------------|\n| interface | [KeyStore.Entry.Attribute](../../../reference/java/security/KeyStore.Entry.Attribute.html) || An attribute associated with a keystore entry. |\n\n### Public Method Summary\n\n|--------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| [Set](../../../reference/java/util/Set.html)\\\u003c[KeyStore.Entry.Attribute](../../../reference/java/security/KeyStore.Entry.Attribute.html)\\\u003e | [getAttributes](../../../reference/java/security/KeyStore.Entry.html#getAttributes())() Retrieves the attributes associated with an entry. |\n\nPublic Methods\n--------------\n\n#### public [Set](../../../reference/java/util/Set.html)\\\u003c[KeyStore.Entry.Attribute](../../../reference/java/security/KeyStore.Entry.Attribute.html)\\\u003e\n**getAttributes**\n()\n\nRetrieves the attributes associated with an entry.\n\n\nThe default implementation returns an empty `Set`. \n\n##### Returns\n\n- an unmodifiable `Set` of attributes, possibly empty"]]