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.OAuthValidator
validateMessage
in class net.oauth.SimpleOAuthValidator
net.oauth.OAuthException
IOException
URISyntaxException
public void validateMessage(net.oauth.OAuthMessage message, net.oauth.OAuthAccessor accessor, OAuthToken requestToken) throws net.oauth.OAuthException, IOException, URISyntaxException
net.oauth.OAuthException
IOException
URISyntaxException
protected void validateTimestampAndNonce(net.oauth.OAuthMessage message, OAuthToken token) throws IOException, net.oauth.OAuthProblemException
IOException
net.oauth.OAuthProblemException
protected void validateTimestamp(net.oauth.OAuthMessage message, long timestamp, OAuthToken token) throws IOException, net.oauth.OAuthProblemException
IOException
net.oauth.OAuthProblemException
Copyright © 2014. All Rights Reserved.