|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.core.security.AuthContext
org.apache.jackrabbit.core.security.AuthContext.Local
An AuthContext implemented using a particular LoginModule.
| Nested Class Summary |
| Nested classes inherited from class org.apache.jackrabbit.core.security.AuthContext |
AuthContext.JAAS, AuthContext.Local |
| Constructor Summary | |
AuthContext.Local(LoginModule module,
Map options,
Credentials creds)
Creates an authentication context given a login module and some credentials. |
|
| 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 |
public AuthContext.Local(LoginModule module,
Map options,
Credentials creds)
module - the login moduleoptions - login module optionscreds - the credentials| Method Detail |
public void login()
throws LoginException
Subject.
login in class AuthContextLoginException - if the authentication fails.LoginContext.login()public Subject getSubject()
getSubject in class AuthContextnull if authentication failed.LoginContext.getSubject()
public void logout()
throws LoginException
Subject.
logout in class AuthContextLoginException - if the logout fails.LoginContext.logout()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||