Class JAASAuthContext
- java.lang.Object
- 
- org.apache.jackrabbit.core.security.authentication.JAASAuthContext
 
- 
- All Implemented Interfaces:
- AuthContext
 
 public class JAASAuthContext extends Object implements AuthContext Implements the commonAuthContextinterface for the JAAS environment.- See Also:
- AuthContext
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedJAASAuthContext(String appName, CallbackHandler cbHandler, Subject subject)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SubjectgetSubject()Return the authenticated Subject.voidlogin()Perform the authentication and, if successful, associate Principals and Credentials with the authenticatedSubject.voidlogout()Logout theSubject.
 
- 
- 
- 
Constructor Detail- 
JAASAuthContextprotected JAASAuthContext(String appName, CallbackHandler cbHandler, Subject subject) - Parameters:
- appName- application name in JAAS Login-Configuration to use
- cbHandler- CallbackHandler for login-modules
- subject- to extend authentication
 
 
- 
 - 
Method Detail- 
loginpublic void login() throws LoginExceptionDescription copied from interface:AuthContextPerform the authentication and, if successful, associate Principals and Credentials with the authenticatedSubject.- Specified by:
- loginin interface- AuthContext
- Throws:
- LoginException- if the authentication fails.
- See Also:
- LoginContext.login()
 
 - 
getSubjectpublic Subject getSubject() Description copied from interface:AuthContextReturn the authenticated Subject.- Specified by:
- getSubjectin interface- AuthContext
- Returns:
- the authenticated Subject or nullif authentication failed.
- See Also:
- LoginContext.getSubject()
 
 - 
logoutpublic void logout() throws LoginExceptionDescription copied from interface:AuthContextLogout theSubject.- Specified by:
- logoutin interface- AuthContext
- Throws:
- LoginException- if the logout fails.
- See Also:
- LoginContext.logout()
 
 
- 
 
-