|
||||||||||
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 authenticationMethod Detail |
---|
public void login() throws LoginException
AuthContext
Subject
.
login
in interface AuthContext
LoginException
- if the authentication fails.LoginContext.login()
public Subject getSubject()
AuthContext
getSubject
in interface AuthContext
null
if authentication failed.LoginContext.getSubject()
public void logout() throws LoginException
AuthContext
Subject
.
logout
in interface AuthContext
LoginException
- if the logout fails.LoginContext.logout()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |