public class UrlParameterAuthenticationHandler extends Object implements AuthenticationHandler
AuthenticationHandler.InvalidAuthenticationExceptionSTASHED_BODY| Constructor and Description |
|---|
UrlParameterAuthenticationHandler(SecurityTokenCodec securityTokenCodec) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getActiveUrl(javax.servlet.http.HttpServletRequest request) |
protected Map<String,String> |
getMappedParameters(javax.servlet.http.HttpServletRequest request) |
String |
getName() |
protected SecurityTokenCodec |
getSecurityTokenCodec() |
SecurityToken |
getSecurityTokenFromRequest(javax.servlet.http.HttpServletRequest request)
Produce a security token extracted from the HTTP request.
|
String |
getWWWAuthenticateHeader(String realm)
Return a String to be used for a WWW-Authenticate header.
|
@Inject public UrlParameterAuthenticationHandler(SecurityTokenCodec securityTokenCodec)
public String getName()
getName in interface AuthenticationHandlerpublic SecurityToken getSecurityTokenFromRequest(javax.servlet.http.HttpServletRequest request) throws AuthenticationHandler.InvalidAuthenticationException
AuthenticationHandlergetSecurityTokenFromRequest in interface AuthenticationHandlerrequest - The request to extract a token from.AuthenticationHandler.InvalidAuthenticationExceptionpublic String getWWWAuthenticateHeader(String realm)
AuthenticationHandlergetWWWAuthenticateHeader in interface AuthenticationHandlerrealm - the name of the realm to use for the authenticate headerprotected SecurityTokenCodec getSecurityTokenCodec()
protected Map<String,String> getMappedParameters(javax.servlet.http.HttpServletRequest request)
protected String getActiveUrl(javax.servlet.http.HttpServletRequest request)
Copyright © 2007-2012. All Rights Reserved.