public class OAuthValidator
extends net.oauth.SimpleOAuthValidator
| Constructor and Description |
|---|
OAuthValidator(OAuthProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
validateMessage(net.oauth.OAuthMessage message,
net.oauth.OAuthAccessor accessor)
Deprecated.
|
void |
validateMessage(net.oauth.OAuthMessage message,
net.oauth.OAuthAccessor accessor,
OAuthToken requestToken)
Overridden to validate the timestamp and nonces last since they have side-effects of storing
data about the message, so we have to make sure the message is valid before we do that.
|
protected void |
validateTimestamp(net.oauth.OAuthMessage message,
long timestamp,
OAuthToken token)
Overridden to delegate timestamp validation to the provider
|
protected void |
validateTimestampAndNonce(net.oauth.OAuthMessage message,
OAuthToken token)
Throw an exception if the timestamp is out of range or the nonce has been
validated previously.
|
public OAuthValidator(OAuthProvider provider)
@Deprecated public void validateMessage(net.oauth.OAuthMessage message, net.oauth.OAuthAccessor accessor) throws net.oauth.OAuthException, IOException, URISyntaxException
validateMessage in interface net.oauth.OAuthValidatorvalidateMessage in class net.oauth.SimpleOAuthValidatornet.oauth.OAuthExceptionIOExceptionURISyntaxExceptionpublic void validateMessage(net.oauth.OAuthMessage message,
net.oauth.OAuthAccessor accessor,
OAuthToken requestToken)
throws net.oauth.OAuthException,
IOException,
URISyntaxException
net.oauth.OAuthExceptionIOExceptionURISyntaxExceptionprotected void validateTimestampAndNonce(net.oauth.OAuthMessage message,
OAuthToken token)
throws IOException,
net.oauth.OAuthProblemException
IOExceptionnet.oauth.OAuthProblemExceptionprotected void validateTimestamp(net.oauth.OAuthMessage message,
long timestamp,
OAuthToken token)
throws IOException,
net.oauth.OAuthProblemException
IOExceptionnet.oauth.OAuthProblemExceptionCopyright © 2015. All Rights Reserved.