Class KeyStoreSecretStore.KeyDetails

java.lang.Object
org.forgerock.secrets.keystore.KeyStoreSecretStore.KeyDetails
Enclosing class:
KeyStoreSecretStore

public final class KeyStoreSecretStore.KeyDetails extends Object
Details of a key that comes from the keystore.
  • Method Details

    • getAlias

      public String getAlias()
      Get the alias that this key is stored using in the keystore.
      Returns:
      The alias.
    • getSecretKey

      public Key getSecretKey() throws NoSuchSecretException
      Get the Key instance for the secret component of this key.
      Returns:
      The Key.
      Throws:
      NoSuchSecretException - If the key entry cannot be unlocked.
    • getCertificate

      public Certificate getCertificate()
      Get the Certificate instance for the public component of this key.
      Returns:
      The Certificate.
    • getCertificateChain

      public List<? extends Certificate> getCertificateChain()
      Get the certificate chain for the public component of this key.
      Returns:
      The certificate chain.
    • getPublicKey

      public PublicKey getPublicKey()
      Get the PublicKey component of this key.
      Returns:
      The PublicKey.