public boolean verifyMessageSignature ( String message , PublicKey publicKey ) { // extract the type and signature parameters Map < String , String > parsed = parseJSON ( message ) ; return verifySignature ( parsed , publicKey ) ; }
Validates the signature on a Simple Notification Service message . No Amazon - specific dependencies just plain Java crypto and Jackson for parsing