Package org.forgerock.secrets.keystore
Class KeyStoreSecretStore.KeyDetails
java.lang.Object
org.forgerock.secrets.keystore.KeyStoreSecretStore.KeyDetails
- Enclosing class:
- KeyStoreSecretStore
Details of a key that comes from the keystore.
-
Method Summary
Modifier and TypeMethodDescriptiongetAlias()Get the alias that this key is stored using in the keystore.Get theCertificateinstance for the public component of this key.List<? extends Certificate>Get the certificate chain for the public component of this key.Get thePublicKeycomponent of this key.Get theKeyinstance for the secret component of this key.
-
Method Details
-
getAlias
Get the alias that this key is stored using in the keystore.- Returns:
- The alias.
-
getSecretKey
Get theKeyinstance for the secret component of this key.- Returns:
- The
Key. - Throws:
NoSuchSecretException- If the key entry cannot be unlocked.
-
getCertificate
Get theCertificateinstance for the public component of this key.- Returns:
- The
Certificate.
-
getCertificateChain
Get the certificate chain for the public component of this key.- Returns:
- The certificate chain.
-
getPublicKey
Get thePublicKeycomponent of this key.- Returns:
- The
PublicKey.
-