|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.security.authentication.LocalAuthContext
public class LocalAuthContext
Provide AuthContext interface, for a JAAS-LoginModule not running in
a LoginContext
AuthContext| Constructor Summary | |
|---|---|
protected |
LocalAuthContext(LoginModuleConfig config,
CallbackHandler cbHandler,
Subject subject)
Create Context and set Subject to extend its authentication |
| 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 LocalAuthContext(LoginModuleConfig config,
CallbackHandler cbHandler,
Subject subject)
config - Condiguration to be used for the LoginModulecbHandler - CallbackHandler for the LoginModulesubject - Subject if a pre-authenticated exists| 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 | |||||||||