|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.sns.util.SignatureChecker
public class SignatureChecker
Utility for validating signatures on a Simple Notification Service JSON message.
Constructor Summary | |
---|---|
SignatureChecker()
|
Method Summary | |
---|---|
boolean |
verifyMessageSignature(java.lang.String message,
java.security.PublicKey publicKey)
Validates the signature on a Simple Notification Service message. |
boolean |
verifySignature(java.util.Map<java.lang.String,java.lang.String> parsedMessage,
java.security.PublicKey publicKey)
Validates the signature on a Simple Notification Service message. |
boolean |
verifySignature(java.lang.String message,
java.lang.String signature,
java.security.PublicKey publicKey)
Does the actual Java cryptographic verification of the signature. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SignatureChecker()
Method Detail |
---|
public boolean verifyMessageSignature(java.lang.String message, java.security.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(java.util.Map<java.lang.String,java.lang.String> parsedMessage, java.security.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(java.lang.String message, java.lang.String signature, java.security.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
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |