org.apache.cxf.rs.security.oauth.provider
Class DefaultOAuthValidator
java.lang.Object
net.oauth.SimpleOAuthValidator
org.apache.cxf.rs.security.oauth.provider.DefaultOAuthValidator
- All Implemented Interfaces:
- net.oauth.OAuthValidator
public class DefaultOAuthValidator
- extends net.oauth.SimpleOAuthValidator
The utility OAuth validator which is primarily used
by the runtime to validate that the issued tokens have not expired.
Note that the runtime does validate OAuth signatures separately.
Fields inherited from class net.oauth.SimpleOAuthValidator |
DEFAULT_MAX_TIMESTAMP_AGE, DEFAULT_TIMESTAMP_WINDOW, maxTimestampAgeMsec, maxVersion, minVersion, SINGLE_PARAMETERS |
Methods inherited from class net.oauth.SimpleOAuthValidator |
checkSingleParameters, currentTimeMsec, releaseGarbage, validateMessage, validateNonce, validateSignature, validateTimestamp, validateTimestampAndNonce, validateVersion |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultOAuthValidator
public DefaultOAuthValidator()
checkSingleParameter
public void checkSingleParameter(net.oauth.OAuthMessage message)
throws net.oauth.OAuthException,
IOException,
URISyntaxException
- Throws:
net.oauth.OAuthException
IOException
URISyntaxException
validateToken
public void validateToken(Token token,
OAuthDataProvider provider)
throws net.oauth.OAuthProblemException
- Throws:
net.oauth.OAuthProblemException
Apache CXF