public final class HSMKeystore
extends java.lang.Object
Class that manages all the operations related with HSM keystores.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
| Modifier and Type | Method and Description |
|---|---|
static java.security.cert.X509Certificate |
getCertificate(java.lang.String alias)
Method that obtains a certificate from a HSM by the alias.
|
static java.security.PrivateKey |
getPrivateKey(java.lang.String alias)
Method that obtains a private key from a HSM by the alias.
|
static java.security.KeyStore.PrivateKeyEntry |
getPrivateKeyEntry(java.lang.String alias)
Method that obtains a private key entry from a HSM by the alias.
|
public static java.security.PrivateKey getPrivateKey(java.lang.String alias)
throws HSMException
alias - Parameter that represents the alias of the private key.HSMException - If the private key cannot be retrieved.public static java.security.cert.X509Certificate getCertificate(java.lang.String alias)
throws HSMException
alias - Parameter that represents the alias of the certificate.HSMException - If the certificate cannot be retrieved.public static java.security.KeyStore.PrivateKeyEntry getPrivateKeyEntry(java.lang.String alias)
throws HSMException
alias - Parameter that represents the alias of the private key entry.HSMException - If the private key entry cannot be retrieved.