public interface SigningService
| Modifier and Type | Method and Description |
|---|---|
List<String> |
aliases()
Returns the certificate aliases available.
|
Certificate[] |
getCertificateChain(String alias)
Returns the certificate chain for the alias specified.
|
String |
getName()
Returns the name of the service.
|
default SigningServicePrivateKey |
getPrivateKey(String alias)
Deprecated.
|
SigningServicePrivateKey |
getPrivateKey(String alias,
char[] password)
Returns the private key for the certificate alias specified.
|
byte[] |
sign(SigningServicePrivateKey privateKey,
String algorithm,
byte[] data)
Sign the data with the private key specified.
|
List<String> aliases() throws KeyStoreException
KeyStoreExceptionCertificate[] getCertificateChain(String alias) throws KeyStoreException
alias - the name of the certificateKeyStoreException@Deprecated default SigningServicePrivateKey getPrivateKey(String alias) throws UnrecoverableKeyException
alias - the name of the certificateUnrecoverableKeyExceptionSigningServicePrivateKey getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException
alias - the name of the certificatepassword - the secret required to access the keyUnrecoverableKeyExceptionbyte[] sign(SigningServicePrivateKey privateKey, String algorithm, byte[] data) throws GeneralSecurityException
privateKey - the private keyalgorithm - the signing algorithm (for example SHA256withRSA)data - the data to be signedGeneralSecurityExceptionCopyright © 2012–2025. All rights reserved.