@ComponentProfile(summary="Signing via AWS KMS",
recommended=AWSKMSConnection.class,
since="3.10.1")
public class GenerateSignatureService
extends SignatureService
In the adapter configuration file this class is aliased as aws-kms-signing which is the preferred alternative to the fully qualified classname when building your configuration.
logCONFIRMATION_ID_KEY| Constructor and Description |
|---|
GenerateSignatureService() |
| Modifier and Type | Method and Description |
|---|---|
void |
doService(AdaptrisMessage msg) |
MessageWrapper<byte[]> |
getInput()
The data to be signed.
|
MessageWrapper<java.io.OutputStream> |
getOutput()
Where to store the signature that was generated.
|
void |
prepare() |
void |
setInput(MessageWrapper<byte[]> input)
The data to be signed.
|
void |
setOutput(MessageWrapper<java.io.OutputStream> output)
Where to store the signature that was generated.
|
GenerateSignatureService |
withInput(MessageWrapper<byte[]> w) |
GenerateSignatureService |
withOutput(MessageWrapper<java.io.OutputStream> w) |
extendedLogging, getExtendedLogging, getMessageType, getSigningAlgorithm, messageType, setExtendedLogging, setMessageType, setSigningAlgorithm, signingAlgorithm, withMessageType, withSigningAlgorithmawsClient, closeService, getConnection, getKeyId, initService, setConnection, setKeyId, start, stop, withConnection, withKeyIdchangeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getLookupName, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setLookupName, setUniqueIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontinueOnFailure, isBranching, setUniqueIdcreateName, createQualifier, isTrackingEndpointchangeState, requestClose, requestInit, requestStart, requestStop, retrieveComponentStategetUniqueIdclose, initgetLookupNamepublic void prepare()
throws CoreException
prepare in interface ComponentLifecycleExtensionprepare in class AWSKMSServiceImplCoreExceptionpublic void doService(AdaptrisMessage msg) throws ServiceException
ServiceExceptionpublic GenerateSignatureService withInput(MessageWrapper<byte[]> w)
public GenerateSignatureService withOutput(MessageWrapper<java.io.OutputStream> w)
public MessageWrapper<byte[]> getInput()
Since KMS enforces a 4096 byte max on the data that can be used with it; this is likely to be a hash of the payload, so again a
ByteArrayFromMetadata or similar where you have previously generated a hash of the data.
public void setInput(MessageWrapper<byte[]> input)
Since KMS enforces a 4096 byte max on the data that can be used with it; this is likely to be a hash of the payload, so again a
ByteArrayFromMetadata or similar where you have previously generated a hash of the data.
public MessageWrapper<java.io.OutputStream> getOutput()
Since the signature will be an opaque set of bytes; you probably want to use MetadataStreamOutput or similar to encode
the signature before storing it as metadata.
public void setOutput(MessageWrapper<java.io.OutputStream> output)
Since the signature will be an opaque set of bytes; you probably want to use MetadataStreamOutput or similar to encode
the signature before storing it as metadata.