public class OAuth2AuthenticationHandler extends Object implements AuthenticationHandler
AuthenticationHandler.InvalidAuthenticationExceptionSTASHED_BODY| Constructor and Description |
|---|
OAuth2AuthenticationHandler(OAuth2Service store) |
| Modifier and Type | Method and Description |
|---|---|
protected SecurityToken |
createSecurityTokenForValidatedRequest(OAuth2NormalizedRequest request)
Return a security token for the request.
|
String |
getName() |
SecurityToken |
getSecurityTokenFromRequest(javax.servlet.http.HttpServletRequest request)
Only denies authentication when an invalid bearer token is received.
|
String |
getWWWAuthenticateHeader(String realm) |
@Inject public OAuth2AuthenticationHandler(OAuth2Service store)
public String getName()
getName in interface AuthenticationHandlerpublic SecurityToken getSecurityTokenFromRequest(javax.servlet.http.HttpServletRequest request) throws AuthenticationHandler.InvalidAuthenticationException
getSecurityTokenFromRequest in interface AuthenticationHandlerAuthenticationHandler.InvalidAuthenticationExceptionpublic String getWWWAuthenticateHeader(String realm)
getWWWAuthenticateHeader in interface AuthenticationHandlerprotected SecurityToken createSecurityTokenForValidatedRequest(OAuth2NormalizedRequest request) throws AuthenticationHandler.InvalidAuthenticationException
OAuth2Service.request - InvalidAuthenticationException - if the token can not be createdAuthenticationHandler.InvalidAuthenticationExceptionCopyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.