Package org.forgerock.secrets.keystore
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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAlias()Get the alias that this key is stored using in the keystore.CertificategetCertificate()Get theCertificateinstance for the public component of this key.List<? extends Certificate>getCertificateChain()Get the certificate chain for the public component of this key.PublicKeygetPublicKey()Get thePublicKeycomponent of this key.KeygetSecretKey()Get theKeyinstance for the secret component of this key.
-
-
-
Method Detail
-
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 theKeyinstance for the secret component of this key.- Returns:
- The
Key. - Throws:
NoSuchSecretException- If the key entry cannot be unlocked.
-
getCertificate
public Certificate getCertificate()
Get theCertificateinstance 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 thePublicKeycomponent of this key.- Returns:
- The
PublicKey.
-
-