org.springframework.security.oauth.common.signature
Interface OAuthSignatureMethod

All Known Implementing Classes:
HMAC_SHA1SignatureMethod, PlainTextSignatureMethod, RSA_SHA1SignatureMethod

public interface OAuthSignatureMethod

Author:
Ryan Heaton

Method Summary
 String getName()
          The name of the OAuth signature method.
 String sign(String signatureBaseString)
          Sign the signature base string.
 void verify(String signatureBaseString, String signature)
          Verify the specified signature on the given signature base string.
 

Method Detail

getName

String getName()
The name of the OAuth signature method.

Returns:
The name of the OAuth signature method.

sign

String sign(String signatureBaseString)
Sign the signature base string.

Parameters:
signatureBaseString - The signature base string to sign.
Returns:
The signature.

verify

void verify(String signatureBaseString,
            String signature)
            throws InvalidSignatureException
Verify the specified signature on the given signature base string.

Parameters:
signatureBaseString - The signature base string.
signature - The signature.
Throws:
InvalidSignatureException


Copyright © 2012. All Rights Reserved.