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 LoginContextcreateLoginContext(String realm, Subject subject, CallbackHandler handler)Instantiate a newLoginContextobject with a name, aSubjectto be authenticated, and aCallbackHandlerobject.
-
-
-
Method Detail
-
createLoginContext
LoginContext createLoginContext(String realm, Subject subject, CallbackHandler handler) throws LoginException
Instantiate 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:
LoginException- if the caller-specifiednamedoes not appear in theConfigurationand there is noConfigurationentry for "other", or if the caller-specifiedsubjectisnull, or if the caller-specifiedcallbackHandlerisnull.
-
-