public interface AuthenticationService
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JAZN_CONFIG |
static java.lang.String |
JAZN_LOGIN_PROVIDER |
static java.lang.String |
LOGIN_CONFIG |
static java.lang.String |
LOGIN_CONFIG_PROVIDER |
Modifier and Type | Method and Description |
---|---|
javax.security.auth.Subject |
getSubject()
Return the subject from JAAS LoginContext
|
void |
login(javax.security.auth.callback.CallbackHandler handler)
JSE only.
|
void |
login(java.lang.String userName,
java.lang.String password)
JSE only.
|
void |
login(java.lang.String successUrl,
java.lang.String cancelUrl,
java.util.Map<java.lang.String,?> props)
This method can be used for both SSO and non-SSO login.
|
void |
logout()
JSE only.
|
void |
logout(java.lang.String targetUrl,
java.util.Map<java.lang.String,?> props)
This method is used Web applications, SSO or non-SSO, to
logout current user.
|
void |
setLoginConfigProvider(java.lang.String provider)
Deprecated.
Deprecated since 11.1.1.1.0
|
static final java.lang.String LOGIN_CONFIG
static final java.lang.String LOGIN_CONFIG_PROVIDER
static final java.lang.String JAZN_LOGIN_PROVIDER
static final java.lang.String JAZN_CONFIG
void login(javax.security.auth.callback.CallbackHandler handler)
handler
- login callback handlevoid login(java.lang.String userName, java.lang.String password)
userName
- user namepassword
- user credentialsvoid logout()
javax.security.auth.Subject getSubject()
void setLoginConfigProvider(java.lang.String provider)
provider
- login config providervoid login(java.lang.String successUrl, java.lang.String cancelUrl, java.util.Map<java.lang.String,?> props)
successUrl
- representing the URL that the user agent must be sent to after successful authentication.cancelUrl
- representing the URL that the user agent must be taken to if the user chooses to cancel the
login from the login form.props
- used to convey any information relevant to the login process. It is mainly for extensibilityvoid logout(java.lang.String targetUrl, java.util.Map<java.lang.String,?> props)
targetUrl
- representing the URL that the user agent must be redirected to upon successful logout.
It is expected that any application context will be encoded in this URLprops
- used to convey any information relevant to the logout process. It is mainly for extensibility