# KeyStore.Entry

public static interface **KeyStore.Entry**

|---|---|---|
| Known Indirect Subclasses [KeyStore.PrivateKeyEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/KeyStore.PrivateKeyEntry.html), [KeyStore.SecretKeyEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/KeyStore.SecretKeyEntry.html), [KeyStore.TrustedCertificateEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/KeyStore.TrustedCertificateEntry.html) |---|---| | [KeyStore.PrivateKeyEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/KeyStore.PrivateKeyEntry.html) | A `KeyStore` entry that holds a `PrivateKey` and corresponding certificate chain. | | [KeyStore.SecretKeyEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/KeyStore.SecretKeyEntry.html) | A `KeyStore` entry that holds a `SecretKey`. | | [KeyStore.TrustedCertificateEntry](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/KeyStore.TrustedCertificateEntry.html) | A `KeyStore` entry that holds a trusted `Certificate`. | |||

A marker interface for `KeyStore` entry types.

### Nested Class Summary

|---|---|---|---|
| interface | [KeyStore.Entry.Attribute](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/KeyStore.Entry.Attribute.html) || An attribute associated with a keystore entry. |

### Public Method Summary

|---|---|
| [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[KeyStore.Entry.Attribute](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/KeyStore.Entry.Attribute.html)\> | [getAttributes](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/KeyStore.Entry.html#getAttributes())() Retrieves the attributes associated with an entry. |

## Public Methods

#### public [Set](https://developers.google.com/j2objc/javadoc/jre/reference/java/util/Set.html)\<[KeyStore.Entry.Attribute](https://developers.google.com/j2objc/javadoc/jre/reference/java/security/KeyStore.Entry.Attribute.html)\>
**getAttributes**
()

Retrieves the attributes associated with an entry.


The default implementation returns an empty `Set`.

##### Returns

- an unmodifiable `Set` of attributes, possibly empty