public class AnonymousAuthenticationHandler extends Object implements AuthenticationHandler
AuthenticationHandler.InvalidAuthenticationException| Modifier and Type | Field and Description |
|---|---|
static String |
ALLOW_UNAUTHENTICATED |
STASHED_BODY| Constructor and Description |
|---|
AnonymousAuthenticationHandler(boolean allowUnauthenticated) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
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.
|
public static final String ALLOW_UNAUTHENTICATED
@Inject public AnonymousAuthenticationHandler(boolean allowUnauthenticated)
public String getName()
getName in interface AuthenticationHandlerpublic SecurityToken getSecurityTokenFromRequest(javax.servlet.http.HttpServletRequest request)
AuthenticationHandlergetSecurityTokenFromRequest in interface AuthenticationHandlerrequest - The request to extract a token from.public String getWWWAuthenticateHeader(String realm)
AuthenticationHandlergetWWWAuthenticateHeader in interface AuthenticationHandlerrealm - the name of the realm to use for the authenticate headerCopyright © 2007-2012. All Rights Reserved.