KeyStore.Entry.Attribute (Java Platform SE 8 )
Keywords: java.security.KeyStore.Entry.Attribute interface
Date: 2026-04-17

compact1, compact2, compact3
java.security

## Interface KeyStore.Entry.Attribute

- All Known Implementing Classes:
    PKCS12Attribute
  Enclosing interface:
    KeyStore.Entry

      public static interface KeyStore.Entry.Attribute

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

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getName()` Returns the attribute's name.
    `String` | `getValue()` Returns the attribute's value.

- - ### Method Detail

    - #### getName

          String getName()

      Returns the attribute's name.
      Returns:
        the attribute name

    - #### getValue

          String getValue()

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

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.