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 String
getAlias()
Get the alias that this key is stored using in the keystore.Certificate
getCertificate()
Get theCertificate
instance for the public component of this key.List<? extends Certificate>
getCertificateChain()
Get the certificate chain for the public component of this key.PublicKey
getPublicKey()
Get thePublicKey
component of this key.Key
getSecretKey()
Get theKey
instance 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 theKey
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 theCertificate
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 thePublicKey
component of this key.- Returns:
- The
PublicKey
.
-
-