Class LocalAuthContext
- java.lang.Object
- 
- org.apache.jackrabbit.core.security.authentication.LocalAuthContext
 
- 
- All Implemented Interfaces:
- AuthContext
 
 public class LocalAuthContext extends Object implements AuthContext Provide AuthContext interface, for a JAAS-LoginModule not running in aLoginContext- See Also:
- AuthContext
 
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedLocalAuthContext(LoginModuleConfig config, CallbackHandler cbHandler, Subject subject)Create Context and set Subject to extend its authentication
 - 
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- 
LocalAuthContextprotected LocalAuthContext(LoginModuleConfig config, CallbackHandler cbHandler, Subject subject) Create Context and set Subject to extend its authentication- Parameters:
- config- Configuration to be used for the LoginModule
- cbHandler- CallbackHandler for the LoginModule
- subject- Subject if a pre-authenticated exists
 
 
- 
 - 
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()
 
 
- 
 
-