@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 |
|---|---|
javax.security.auth.login.LoginContext |
createLoginContext(java.lang.String realm,
javax.security.auth.Subject subject,
javax.security.auth.callback.CallbackHandler handler)
Instantiate a new
LoginContext object with a name, a Subject to be authenticated,
and a CallbackHandler object. |
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.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.javax.security.auth.login.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 © 2010 - 2023 Adobe. All Rights Reserved