|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuthContext
An authentication context used to authenticate users. It is similar to JAAS' LoginContext
but can work in a non-JAAS environment.
This class is abstract and has two implementations:
JAASAuthContext
which delegates to a regular JAAS LoginContext
LocalAuthContext
which implements authentication using a locally-defined
JAAS LoginModule
Method Summary | |
---|---|
Subject |
getSubject()
Return the authenticated Subject. |
void |
login()
Perform the authentication and, if successful, associate Principals and Credentials with the authenticated Subject . |
void |
logout()
Logout the Subject . |
Method Detail |
---|
void login() throws LoginException
Subject
.
LoginException
- if the authentication fails.LoginContext.login()
Subject getSubject()
null
if authentication failed.LoginContext.getSubject()
void logout() throws LoginException
Subject
.
LoginException
- if the logout fails.LoginContext.logout()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |