@ProviderType
public interface LoginContextFactory
LoginContext instances.
Instead of directly creating LoginContext this factory can be used. It takes care of
locating the Configuration instance and switching of Thread's context
classloader.
| Modifier and Type | Method and Description |
|---|---|
LoginContext |
createLoginContext(String realm,
Subject subject,
CallbackHandler handler)
Instantiate a new
LoginContext object with a name, a Subject to be authenticated,
and a CallbackHandler object. |
LoginContext createLoginContext(String realm, Subject subject, CallbackHandler handler) throws LoginException
LoginContext object with a name, a Subject to be authenticated,
and a CallbackHandler object.realm - realm or application namesubject - the Subject to authenticate.handler - the CallbackHandler object used by
LoginModules to communicate with the user.LoginException - if the caller-specified name does not appear in
the Configuration and there is no Configuration entry
for "other", or if the caller-specified subject is null,
or if the caller-specified callbackHandler is null.Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.