@ComponentProfile(summary="Verify a signature using AWS KMS",
recommended=AWSKMSConnection.class,
since="3.10.1")
public class VerifySignatureService
extends SignatureService
If the signature does not verify for any reason then a normal ServiceException will be thrown.
In the adapter configuration file this class is aliased as aws-kms-verify-signature which is the preferred alternative to the fully qualified classname when building your configuration.
logCONFIRMATION_ID_KEY| Constructor and Description |
|---|
VerifySignatureService() |
| Modifier and Type | Method and Description |
|---|---|
void |
doService(AdaptrisMessage msg) |
MessageWrapper<byte[]> |
getDataToBeVerified()
The data that needs to be checked against the signature.
|
MessageWrapper<byte[]> |
getSignature()
The source of the signature.
|
void |
prepare() |
void |
setDataToBeVerified(MessageWrapper<byte[]> dataToBeVerified)
The data that needs to be checked against the signature.
|
void |
setSignature(MessageWrapper<byte[]> signature)
The source of the signature.
|
VerifySignatureService |
withDataToBeVerified(MessageWrapper<byte[]> w) |
VerifySignatureService |
withSignature(MessageWrapper<byte[]> 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 VerifySignatureService withSignature(MessageWrapper<byte[]> w)
public VerifySignatureService withDataToBeVerified(MessageWrapper<byte[]> w)
public MessageWrapper<byte[]> getSignature()
Where the signature is stored; it's probably going to be a ByteArrayFromMetadata or similar.
public void setSignature(MessageWrapper<byte[]> signature)
Where the signature is stored; it's probably going to be a ByteArrayFromMetadata or similar.
public MessageWrapper<byte[]> getDataToBeVerified()
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 setDataToBeVerified(MessageWrapper<byte[]> dataToBeVerified)
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.