Package org.apache.felix.jaas
Interface LoginContextFactory
-
public interface LoginContextFactoryA factory for creatingLoginContextinstances.Instead of directly creating
LoginContextthis factory can be used. It takes care of locating theConfigurationinstance and switching of Thread's context classloader.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.security.auth.login.LoginContextcreateLoginContext(java.lang.String realm, javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler handler)Instantiate a newLoginContextobject with a name, aSubjectto be authenticated, and aCallbackHandlerobject.
-
-
-
Method Detail
-
createLoginContext
javax.security.auth.login.LoginContext createLoginContext(java.lang.String realm, javax.security.auth.Subject subject, javax.security.auth.callback.CallbackHandler handler) throws javax.security.auth.login.LoginExceptionInstantiate a newLoginContextobject with a name, aSubjectto be authenticated, and aCallbackHandlerobject.- Parameters:
realm- realm or application namesubject- theSubjectto authenticate.handler- theCallbackHandlerobject used by LoginModules to communicate with the user.- Returns:
- created LoginContext
- Throws:
javax.security.auth.login.LoginException- if the caller-specifiednamedoes not appear in theConfigurationand there is noConfigurationentry for "other", or if the caller-specifiedsubjectisnull, or if the caller-specifiedcallbackHandlerisnull.
-
-