public class AmazonSigningService extends Object implements SigningService
| Constructor and Description |
|---|
AmazonSigningService(String region,
AmazonCredentials credentials,
Function<String,Certificate[]> certificateStore)
Creates a new AWS signing service.
|
AmazonSigningService(String region,
String credentials,
Function<String,Certificate[]> certificateStore)
Deprecated.
|
AmazonSigningService(String region,
Supplier<AmazonCredentials> credentials,
Function<String,Certificate[]> certificateStore)
Creates a new AWS signing service.
|
| 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.
|
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.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPrivateKeypublic AmazonSigningService(String region, AmazonCredentials credentials, Function<String,Certificate[]> certificateStore)
region - the AWS region holding the keys (for example eu-west-3)credentials - the AWS credentialscertificateStore - provides the certificate chain for the keys@Deprecated public AmazonSigningService(String region, String credentials, Function<String,Certificate[]> certificateStore)
region - the AWS region holding the keys (for example eu-west-3)credentials - the AWS credentials: accessKey|secretKey|sessionToken (the session token is optional)certificateStore - provides the certificate chain for the keyspublic AmazonSigningService(String region, Supplier<AmazonCredentials> credentials, Function<String,Certificate[]> certificateStore)
region - the AWS region holding the keys (for example eu-west-3)credentials - the AWS credentials providercertificateStore - provides the certificate chain for the keyspublic List<String> aliases() throws KeyStoreException
SigningServicealiases in interface SigningServiceKeyStoreExceptionpublic Certificate[] getCertificateChain(String alias) throws KeyStoreException
SigningServicegetCertificateChain in interface SigningServicealias - the name of the certificateKeyStoreExceptionpublic String getName()
SigningServicegetName in interface SigningServicepublic SigningServicePrivateKey getPrivateKey(String alias, char[] password) throws UnrecoverableKeyException
SigningServicegetPrivateKey in interface SigningServicealias - the name of the certificatepassword - the secret required to access the keyUnrecoverableKeyExceptionpublic byte[] sign(SigningServicePrivateKey privateKey, String algorithm, byte[] data) throws GeneralSecurityException
SigningServicesign in interface SigningServiceprivateKey - the private keyalgorithm - the signing algorithm (for example SHA256withRSA)data - the data to be signedGeneralSecurityExceptionCopyright © 2012–2025. All rights reserved.