Stay organized with collections
Save and categorize content based on your preferences.
KeyStore.Entry.Attribute
public
static
interface
KeyStore.Entry.Attribute
java.security.KeyStore.Entry.Attribute
|
Known indirect subclasses
|
An attribute associated with a keystore entry.
It comprises a name and one or more values.
Summary
Public methods
getName
public abstract String getName ()
Returns the attribute's name.
Returns |
String |
the attribute name |
getValue
public abstract String getValue ()
Returns the attribute's value.
Multi-valued attributes encode their values as a single string.
Returns |
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](/guide/topics/manifest/uses-sdk-element#ApiLevels) \nSummary: [Methods](#pubmethods) \n\nKeyStore.Entry.Attribute\n========================\n\n\n`\npublic\nstatic\n\n\ninterface\nKeyStore.Entry.Attribute\n`\n\n\n`\n\n\n`\n\n|----------------------------------------|\n| java.security.KeyStore.Entry.Attribute |\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known indirect subclasses [PKCS12Attribute](/reference/java/security/PKCS12Attribute) |-------------------------------------------------------------|-------------------------------------------------------| | [PKCS12Attribute](/reference/java/security/PKCS12Attribute) | An attribute associated with a PKCS12 keystore entry. | |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn attribute associated with a keystore entry.\nIt comprises a name and one or more values.\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------------------------------------|-----------------------------------------------------------------------------------------------------------------|\n| ` abstract `[String](/reference/java/lang/String) | ` `[getName](/reference/java/security/KeyStore.Entry.Attribute#getName())`() ` Returns the attribute's name. |\n| ` abstract `[String](/reference/java/lang/String) | ` `[getValue](/reference/java/security/KeyStore.Entry.Attribute#getValue())`() ` Returns the attribute's value. |\n\nPublic methods\n--------------\n\n### getName\n\nAdded in [API level 26](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract String getName ()\n```\n\nReturns the attribute's name.\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------------------------------------|---------------------------|\n| [String](/reference/java/lang/String) | the attribute name \u003cbr /\u003e |\n\n### getValue\n\nAdded in [API level 26](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract String getValue ()\n```\n\nReturns the attribute's value.\nMulti-valued attributes encode their values as a single string.\n\n\u003cbr /\u003e\n\n| Returns ||\n|---------------------------------------|----------------------------|\n| [String](/reference/java/lang/String) | the attribute value \u003cbr /\u003e |"]]