SnsMessageManager
instead for both message unmarshalling and verification.@Deprecated @ThreadSafe public class SignatureChecker extends Object
Constructor and Description |
---|
SignatureChecker()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
verifyMessageSignature(String message,
PublicKey publicKey)
Deprecated.
Validates the signature on a Simple Notification Service message.
|
boolean |
verifySignature(Map<String,String> parsedMessage,
PublicKey publicKey)
Deprecated.
Validates the signature on a Simple Notification Service message.
|
boolean |
verifySignature(String message,
String signature,
PublicKey publicKey)
Deprecated.
Does the actual Java cryptographic verification of the signature.
|
boolean |
verifySignature(String message,
String signature,
SignatureVersion signatureVersion,
PublicKey publicKey)
Deprecated.
Does the actual Java cryptographic verification of the signature.
|
public boolean verifyMessageSignature(String message, PublicKey publicKey)
message
- A JSON-encoded Simple Notification Service message. Note: the
JSON may be only one level deep.publicKey
- The Simple Notification Service public key, exactly as you'd
see it when retrieved from the cert.public boolean verifySignature(Map<String,String> parsedMessage, PublicKey publicKey)
parsedMessage
- A map of Simple Notification Service message.publicKey
- The Simple Notification Service public key, exactly as you'd
see it when retrieved from the cert.public boolean verifySignature(String message, String signature, SignatureVersion signatureVersion, PublicKey publicKey)
message
- Exact string that was signed. In the case of the x-amz-sns-signature header the
signing string is the entire post bodysignature
- Base64-encoded signature of the messagesignatureVersion
- The hashing algorithm used to sign the messagepublic boolean verifySignature(String message, String signature, PublicKey publicKey)
message
- Exact string that was signed. In the case of the x-amz-sns-signature header the
signing string is the entire post bodysignature
- Base64-encoded signature of the message