| java.lang.Object com.ecyrd.jspwiki.auth.login.AbstractLoginModule com.ecyrd.jspwiki.auth.login.CookieAssertionLoginModule
Field Summary | |
final public static String | PREFS_COOKIE_NAME The name of the cookie that gets stored to the user browser. | final public static String | PROMPT Believed to be unused. | final protected static Logger | log |
PREFS_COOKIE_NAME | final public static String PREFS_COOKIE_NAME(Code) | | The name of the cookie that gets stored to the user browser.
|
PROMPT | final public static String PROMPT(Code) | | Believed to be unused.
|
log | final protected static Logger log(Code) | | |
clearUserCookie | public static void clearUserCookie(HttpServletResponse response)(Code) | | Removes the user cookie from the response. This makes the user appear
again as an anonymous coward.
Parameters: response - The servlet response. |
getUserCookie | public static String getUserCookie(HttpServletRequest request)(Code) | | Returns the username cookie value.
Parameters: request - The Servlet request, as usual. the username, as retrieved from the cookie |
login | public boolean login() throws LoginException(Code) | | Logs in the user by calling back to the registered CallbackHandler with
an HttpRequestCallback. The CallbackHandler must supply the current
servlet HTTP request as its response.
the result of the login; if the subject Principal set alreadypossesses Role.AUTHENTICATED, always returns false to indicate that this module should be ignored. Otherwise, if a cookie isfound, this method returns true . If not found, thismethod throws a FailedLoginException . See Also: javax.security.auth.spi.LoginModule.login |
setUserCookie | public static void setUserCookie(HttpServletResponse response, String name)(Code) | | Sets the username cookie. The cookie value is URLEncoded in UTF-8.
Parameters: response - The Servlet response Parameters: name - The name to write into the cookie. |
|
|