private boolean trySignature(String buf,String headerSignature,SignatureKeyType type){
  String signature=_keyGenerator.sign(buf.toString(),type);
  _log.debug("signature: " + (signature != null ? signature : "null"));
  _log.debug("headerSignature: " + (headerSignature != null ? headerSignature : "null"));
  if (StringUtils.isNotBlank(headerSignature) && StringUtils.isNotBlank(signature) && headerSignature.equals(signature)) {
    return true;
  }
  return false;
}

private boolean trySignature ( String buf , String headerSignature , SignatureKeyType type ) { String signature = _keyGenerator . sign ( buf . toString ( ) , type ) ; _log . debug ( "signature: " + ( signature != null ? signature : "null" ) ) ; _log . debug ( "headerSignature: " + ( headerSignature != null ? headerSignature : "null" ) ) ; if ( StringUtils . isNotBlank ( headerSignature ) && StringUtils . isNotBlank ( signature ) && headerSignature . equals ( signature ) ) { return true ; } return false ; }
attempts to validate signature of given type
