validates the signature on a simple notification service message . no amazon-specific dependencies , just plain java crypto and jackson for parsing concode_field_sep String MESSAGE_ID concode_elem_sep String SIGNATURE_VERSION concode_elem_sep String SIGNATURE concode_elem_sep String TYPE concode_elem_sep String SUBSCRIBE_TYPE concode_elem_sep String TOPIC concode_elem_sep Set<String> INTERESTING_FIELDS concode_elem_sep String MESSAGE concode_elem_sep String TIMESTAMP concode_elem_sep String TOKEN concode_elem_sep String SUBSCRIBE_URL concode_elem_sep String NOTIFICATION_TYPE concode_elem_sep String UNSUBSCRIBE_TYPE concode_elem_sep Signature sigChecker concode_elem_sep String SUBJECT concode_field_sep boolean verifySignature concode_elem_sep boolean verifySignature concode_elem_sep Map<String,String> parseJSON concode_elem_sep TreeMap<String,String> subscribeMessageValues concode_elem_sep TreeMap<String,String> publishMessageValues concode_elem_sep String stringToSign
boolean function ( String arg0 , PublicKey arg1 ) { Map < String , String > loc0 = parseJSON ( arg0 ) ; return verifySignature ( loc0 , arg1 ) ; }