org.restlet.ext.oauth
Class TokenVerifier
java.lang.Object
org.restlet.ext.oauth.TokenVerifier
- All Implemented Interfaces:
- Verifier
public class TokenVerifier
- extends Object
- implements Verifier
Verifier for OAuth 2.0 Protected Resources. Typically use with
ChallengeAuthenticator. "Bearer" and "MAC" challenge schemes are may
supported.
- Author:
- Shotaro Uchida
- See Also:
-
Bearer Token Usage,
MAC Access Authentication
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TokenVerifier
public TokenVerifier(Reference authReference)
verify
public int verify(Request request,
Response response)
- Specified by:
verify
in interface Verifier
isAcceptBodyMethod
public boolean isAcceptBodyMethod()
- Returns:
- the acceptBodyMethod
setAcceptBodyMethod
public void setAcceptBodyMethod(boolean acceptBodyMethod)
- Parameters:
acceptBodyMethod
- the acceptBodyMethod to set
isAcceptQueryMethod
public boolean isAcceptQueryMethod()
- Returns:
- the acceptQueryMethod
setAcceptQueryMethod
public void setAcceptQueryMethod(boolean acceptQueryMethod)
- Parameters:
acceptQueryMethod
- the acceptQueryMethod to set
Copyright © 2005-2014 Restlet.