|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.jguard.authentication.AuthenticationUtils
public class AuthenticationUtils
Authentication utility class stored on the user's session.
| Constructor Summary | |
|---|---|
AuthenticationUtils()
|
|
| Method Summary | |
|---|---|
javax.security.auth.login.LoginContext |
authenticate(java.lang.String applicationName,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String authScheme)
encapsulate JAAS login lifecycle. |
javax.security.auth.Subject |
getSubject()
retrieve the subject from the loginContext. |
void |
logout()
logout the user with the related LoginContext. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthenticationUtils()
| Method Detail |
|---|
public javax.security.auth.login.LoginContext authenticate(java.lang.String applicationName,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String authScheme)
throws javax.security.auth.login.LoginException
applicationName - one of the application names located in 'login.config.url's files defined in the 'java.security' file.
'jGuard.loginScheme' file is one of them.username - user loginpassword - user password
javax.security.auth.login.LoginExceptionpublic javax.security.auth.Subject getSubject()
public void logout()
applicationName - username - user loginpassword - user password
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||