Stay organized with collections
Save and categorize content based on your preferences.
Attribute
interface Attribute
An attribute associated with a keystore entry. It comprises a name and one or more values.
Summary
Public methods |
abstract String! |
Returns the attribute's name.
|
abstract String! |
Returns the attribute's value.
|
Public methods
getName
abstract fun getName(): String!
Returns the attribute's name.
Return |
String! |
the attribute name |
getValue
abstract fun getValue(): String!
Returns the attribute's value. Multi-valued attributes encode their values as a single string.
Return |
String! |
the attribute value |
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.Attribute\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nAttribute\n=========\n\n```\ninterface Attribute\n```\n\n|---------------------------------------------|\n| [java.security.KeyStore.Entry.Attribute](#) |\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [PKCS12Attribute](/reference/kotlin/java/security/PKCS12Attribute) |--------------------------------------------------------------------|-------------------------------------------------------| | [PKCS12Attribute](/reference/kotlin/java/security/PKCS12Attribute) | An attribute associated with a PKCS12 keystore entry. | |\n\nAn attribute associated with a keystore entry. It comprises a name and one or more values.\n\nSummary\n-------\n\n| Public methods ||\n|--------------------------------------------------------------------------------------------|------------------------------------------------------------|\n| abstract [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getName](#getName())`()` Returns the attribute's name. |\n| abstract [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getValue](#getValue())`()` Returns the attribute's value. |\n\nPublic methods\n--------------\n\n### getName\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun getName(): String!\n```\n\nReturns the attribute's name.\n\n| Return ||\n|-----------------------------------------------------------------------------------|--------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | the attribute name |\n\n### getValue\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun getValue(): String!\n```\n\nReturns the attribute's value. Multi-valued attributes encode their values as a single string.\n\n| Return ||\n|-----------------------------------------------------------------------------------|---------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | the attribute value |"]]