Apache CXF API

org.apache.cxf.rs.security.oauth2.tokens.hawk
Class HawkAccessTokenValidator

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth2.tokens.hawk.HawkAccessTokenValidator
All Implemented Interfaces:
AccessTokenValidator

public class HawkAccessTokenValidator
extends Object
implements AccessTokenValidator


Constructor Summary
HawkAccessTokenValidator()
           
 
Method Summary
 List<String> getSupportedAuthorizationSchemes()
           
 void setDataProvider(OAuthDataProvider dataProvider)
           
 void setNonceVerifier(NonceVerifier nonceVerifier)
           
 AccessTokenValidation validateAccessToken(MessageContext mc, String authScheme, String authSchemeData)
           
protected  void validateTimestampNonce(HawkAccessToken token, String ts, String nonce)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HawkAccessTokenValidator

public HawkAccessTokenValidator()
Method Detail

getSupportedAuthorizationSchemes

public List<String> getSupportedAuthorizationSchemes()
Specified by:
getSupportedAuthorizationSchemes in interface AccessTokenValidator

validateAccessToken

public AccessTokenValidation validateAccessToken(MessageContext mc,
                                                 String authScheme,
                                                 String authSchemeData)
                                          throws OAuthServiceException
Specified by:
validateAccessToken in interface AccessTokenValidator
Throws:
OAuthServiceException

validateTimestampNonce

protected void validateTimestampNonce(HawkAccessToken token,
                                      String ts,
                                      String nonce)

setDataProvider

public void setDataProvider(OAuthDataProvider dataProvider)

setNonceVerifier

public void setNonceVerifier(NonceVerifier nonceVerifier)

Apache CXF API

Apache CXF