|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AuthenticationHandler
Implements a specific authentication mechanism and produces a SecurityToken when authentication is successful.
| Nested Class Summary | |
|---|---|
static class |
AuthenticationHandler.InvalidAuthenticationException
An exception thrown by an AuthenticationHandler in the situation where a malformed credential or token is passed. |
| Field Summary | |
|---|---|
static String |
STASHED_BODY
Some authentication handlers need to read the request body to perform verification. |
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
static final String STASHED_BODY
| Method Detail |
|---|
String getName()
SecurityToken getSecurityTokenFromRequest(javax.servlet.http.HttpServletRequest request)
throws AuthenticationHandler.InvalidAuthenticationException
request - The request to extract a token from.
AuthenticationHandler.InvalidAuthenticationExceptionString getWWWAuthenticateHeader(String realm)
realm - the name of the realm to use for the authenticate header
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||