public class DefaultAuthenticationServiceImpl extends SimpleAuthenticationServiceImpl implements ServletAuthenticationService, InitializingBean
KShieldClient
client, connManager, httpClient, url
KSHIELD_PRINCIPAL_TOKEN
Constructor and Description |
---|
DefaultAuthenticationServiceImpl(String url) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
boolean |
authenticate(HttpServletRequest request)
Authenticates user identified by info stored in request (e.g.
|
protected boolean |
doAuthentication(HttpServletRequest request,
UserInfo userInfo)
Override this method to do real authentication steps
|
checkService, checkUrl, createSSLSocketFactory, createUserInfo, destroy, getAllowedAuthTypes, getApiKey, getConnectionTimeout, getMergedAttributes, getResponseLevel, getSoTimeout, getTrustStorePath, getUrl, getUserInfoValidator, getUsernameAttribute, hasOptionalAttributes, hasTrustStore, hasUsernameAttr, init, loadTrustStore, sendClientMessage, sendClientMessage, setAllowedAuthTypes, setApiKey, setConnectionTimeout, setOptionalAttributes, setResponseLevel, setSoTimeout, setTrustStorePath, setUrl, setUserInfoValidator, setUsernameAttribute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkService, createUserInfo, destroy, init, sendClientMessage, sendClientMessage
public DefaultAuthenticationServiceImpl(String url)
url
- KeyShield SSO Server urlpublic void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
public boolean authenticate(HttpServletRequest request)
ServletAuthenticationService
authenticate
in interface ServletAuthenticationService
request
- current HTTP requestServletAuthenticationService.KSHIELD_PRINCIPAL_TOKEN
protected boolean doAuthentication(HttpServletRequest request, UserInfo userInfo)
request
- current HTTP requestuserInfo
- User data returned by KeyShield SSO Server clientCopyright © 2013 TDP Ltd. All Rights Reserved.