public interface AuthenticationService
| Modifier and Type | Method and Description |
|---|---|
LoginContext |
createLoginContext()
Construct a prepared login context for the configuration of the current application.
|
LoginContext |
createLoginContext(String authenticationStack)
Construct a login context for an already configured authentication stack with the given name.
|
LoginContext |
createLoginContext(String authenticationStack,
CallbackHandler callbackHandler)
Construct a login context for an already configured authentication stack with the given name and call-back handler.
|
LoginContext |
createLoginContext(String authenticationStack,
Subject subject)
Construct a login context for an already configured authentication stack with the given name and a Subject object.
|
LoginContext |
createLoginContext(String authenticationStack,
Subject subject,
CallbackHandler callbackHandler)
Construct a login context using the given authentication configuration and call-back handler.
|
LoginContext |
createLoginContext(String authenticationStack,
Subject subject,
CallbackHandler callbackHandler,
Configuration configuration)
Construct a login context using the given authentication configuration and call-back handler.
|
Configuration |
getConfiguration()
Returns the login configuration associated to the current request processing or the default installed configuration.
|
LoginContext createLoginContext() throws LoginException
LoginException - - thrown in case the login context cannot be constructed,
e.g. there is no current application, or the authentication stack is unknown.LoginContext createLoginContext(String authenticationStack) throws LoginException
authenticationStack - - the name of the configuration for the authentication stack.LoginException - - thrown in case the login context cannot be constructed,
e.g. the authentication stack is unknown.LoginContext createLoginContext(String authenticationStack, CallbackHandler callbackHandler) throws LoginException
authenticationStack - - the name of the configuration for the authentication stack.callbackHandler - - an instance of JAAS call-back handler for the use of the authentication process.
It can be null in case the current thread of control processes a request with associated call-back hander.LoginException - - thrown in case the login context cannot be constructed,
e.g. the authentication stack is unknown.LoginContext createLoginContext(String authenticationStack, Subject subject) throws LoginException
authenticationStack - - the name of the configuration for the authentication stack.subject - - the subject to authenticate. If null the authentication framework will use a new one.LoginException - - thrown in case the login context cannot be constructed,
e.g. the authentication stack is unknown.LoginContext createLoginContext(String authenticationStack, Subject subject, CallbackHandler callbackHandler) throws LoginException
authenticationStack - - the name of the authentication stack, used only for logging purposessubject - - the subject to authenticate. If null the authentication framework will use a new one.callbackHandler - - an instance of JAAS call-back handler for the use of the authentication process.
It can be null in case the current thread of control processes a request with associated call-back hander.LoginException - - thrown in case the login context cannot be constructed,
e.g. the authentication stack is unknown.LoginContext createLoginContext(String authenticationStack, Subject subject, CallbackHandler callbackHandler, Configuration configuration) throws LoginException
authenticationStack - - the name of the authentication stack, used only for logging purposessubject - - the subject to authenticate. If null the authentication framework will use a new one.callbackHandler - - an instance of JAAS call-back handler for the use of the authentication process.
It can be null in case the current thread of control processes a request with associated call-back hander.configuration - - the configuration of authentication stack to be used.LoginException - - thrown in case the login context cannot be constructed,
e.g. the authentication stack is unknown.Configuration getConfiguration() throws LoginException
LoginException - - thrown in case the configuration cannot be obtainedCopyright © 2022 SAP. All rights reserved.