|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.security.authentication.JAASAuthContext
public class JAASAuthContext
Implements the common AuthContext interface for the JAAS environment.
AuthContext| Constructor Summary | |
|---|---|
protected |
JAASAuthContext(String appName,
CallbackHandler cbHandler,
Subject subject)
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected JAASAuthContext(String appName,
CallbackHandler cbHandler,
Subject subject)
appName - application name in JAAS Login-Configuration to usecbHandler - CallbackHandler for login-modulessubject - to extend authentication| Method Detail |
|---|
public void login()
throws LoginException
AuthContextSubject.
login in interface AuthContextLoginException - if the authentication fails.LoginContext.login()public Subject getSubject()
AuthContext
getSubject in interface AuthContextnull if authentication failed.LoginContext.getSubject()
public void logout()
throws LoginException
AuthContextSubject.
logout in interface AuthContextLoginException - if the logout fails.LoginContext.logout()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||