@Concealed public abstract class AbstractAuthenticationService extends java.lang.Object implements AuthenticationService
JAZN_CONFIG, JAZN_LOGIN_PROVIDER, LOGIN_CONFIG, LOGIN_CONFIG_PROVIDER| Constructor and Description |
|---|
AbstractAuthenticationService() |
| Modifier and Type | Method and Description |
|---|---|
javax.security.auth.Subject |
getSubject()
Return the subject from JAAS LoginContext
|
boolean |
hasSsoSupport()
Deprecated.
Deprecated since 11.1.1.4.0
|
void |
internalLogout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.util.Map<java.lang.String,?> props)
Deprecated.
Deprecated since 11.1.1.4.0
Internal: Applications should not use this class.
This is method is internal used only if implemented by subclass.
|
void |
login(javax.security.auth.callback.CallbackHandler handler)
Implementer should overwrite this method if support JAAS
login
|
void |
login(java.lang.String username,
java.lang.String password)
Implementer should overwrite this method if support non
container authentication
|
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 |
setLoginConfig(java.lang.String config)
Deprecated.
Deprecated since 11.1.1.1.0
|
void |
setLoginConfigProvider(java.lang.String provider)
Deprecated.
Deprecated since 11.1.1.1.0
|
public void login(java.lang.String successUrl,
java.lang.String cancelUrl,
java.util.Map<java.lang.String,?> props)
AuthenticationServicelogin in interface AuthenticationServicesuccessUrl - 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 extensibilitypublic void logout(java.lang.String targetUrl,
java.util.Map<java.lang.String,?> props)
AuthenticationServicelogout in interface AuthenticationServicetargetUrl - 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 extensibilitypublic void login(java.lang.String username,
java.lang.String password)
login in interface AuthenticationServiceusername - user namepassword - user credentialspublic void login(javax.security.auth.callback.CallbackHandler handler)
login in interface AuthenticationServicehandler - login callback handlepublic void logout()
AuthenticationServicelogout in interface AuthenticationServicepublic javax.security.auth.Subject getSubject()
AuthenticationServicegetSubject in interface AuthenticationServicepublic void setLoginConfig(java.lang.String config)
public void setLoginConfigProvider(java.lang.String provider)
setLoginConfigProvider in interface AuthenticationServiceprovider - login config providerpublic void internalLogout(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.util.Map<java.lang.String,?> props)
public boolean hasSsoSupport()