|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.oauth.SimpleOAuthValidator org.jboss.resteasy.auth.oauth.OAuthValidator
public class OAuthValidator
OAuth Validator implementation to check OAuth Messages
Field Summary |
---|
Fields inherited from class net.oauth.SimpleOAuthValidator |
---|
DEFAULT_MAX_TIMESTAMP_AGE, DEFAULT_TIMESTAMP_WINDOW, maxTimestampAgeMsec, maxVersion, minVersion, SINGLE_PARAMETERS |
Constructor Summary | |
---|---|
OAuthValidator(OAuthProvider provider)
|
Method Summary | |
---|---|
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. |
Methods inherited from class net.oauth.SimpleOAuthValidator |
---|
checkSingleParameters, currentTimeMsec, releaseGarbage, validateNonce, validateSignature, validateTimestamp, validateTimestampAndNonce, validateVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OAuthValidator(OAuthProvider provider)
Method Detail |
---|
@Deprecated public void validateMessage(net.oauth.OAuthMessage message, net.oauth.OAuthAccessor accessor) throws net.oauth.OAuthException, java.io.IOException, java.net.URISyntaxException
validateMessage
in interface net.oauth.OAuthValidator
validateMessage
in class net.oauth.SimpleOAuthValidator
net.oauth.OAuthException
java.io.IOException
java.net.URISyntaxException
public void validateMessage(net.oauth.OAuthMessage message, net.oauth.OAuthAccessor accessor, OAuthToken requestToken) throws net.oauth.OAuthException, java.io.IOException, java.net.URISyntaxException
net.oauth.OAuthException
java.io.IOException
java.net.URISyntaxException
protected void validateTimestampAndNonce(net.oauth.OAuthMessage message, OAuthToken token) throws java.io.IOException, net.oauth.OAuthProblemException
java.io.IOException
net.oauth.OAuthProblemException
protected void validateTimestamp(net.oauth.OAuthMessage message, long timestamp, OAuthToken token) throws java.io.IOException, net.oauth.OAuthProblemException
java.io.IOException
net.oauth.OAuthProblemException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |