# KeyStore.Entry.Attribute

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# Attribute

```
interface Attribute
```

|----------------------------------------------------------------------------------------------------------------------------------|
| [java.security.KeyStore.Entry.Attribute](https://developer.android.com/reference/kotlin/java/security/KeyStore.Entry.Attribute#) |

|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [PKCS12Attribute](https://developer.android.com/reference/kotlin/java/security/PKCS12Attribute) |-------------------------------------------------------------------------------------------------|-------------------------------------------------------| | [PKCS12Attribute](https://developer.android.com/reference/kotlin/java/security/PKCS12Attribute) | An attribute associated with a PKCS12 keystore entry. | |

An attribute associated with a keystore entry. It comprises a name and one or more values.

## Summary

|                                                                                                               Public methods                                                                                                               ||
|-------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------|
| abstract[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getName](https://developer.android.com/reference/kotlin/java/security/KeyStore.Entry.Attribute#getName())`()` Returns the attribute's name.    |
| abstract[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getValue](https://developer.android.com/reference/kotlin/java/security/KeyStore.Entry.Attribute#getValue())`()` Returns the attribute's value. |

## Public methods

### getName

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
abstract fun getName(): String!
```

Returns the attribute's name.

|                                                Return                                                 ||
|-----------------------------------------------------------------------------------|--------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | the attribute name |

### getValue

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
abstract fun getValue(): String!
```

Returns the attribute's value. Multi-valued attributes encode their values as a single string.

|                                                 Return                                                 ||
|-----------------------------------------------------------------------------------|---------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | the attribute value |