/** * Add a signature to the message. * * @throws URISyntaxException */ public void sign(OAuthAccessor accessor) throws IOException, OAuthException, URISyntaxException { OAuthSignatureMethod.newSigner(this, accessor).sign(this); }
protected void validateSignature(OAuthMessage message, OAuthAccessor accessor) throws OAuthException, IOException, URISyntaxException { message.requireParameters( OAuth.OAUTH_CONSUMER_KEY, OAuth.OAUTH_SIGNATURE_METHOD, OAuth.OAUTH_SIGNATURE); OAuthSignatureMethod.newSigner(message, accessor).validate(message); }