public class SpringAuthenticationServiceImpl extends DefaultAuthenticationServiceImpl
client, connManager, httpClient, url
KSHIELD_PRINCIPAL_TOKEN
Constructor and Description |
---|
SpringAuthenticationServiceImpl(String url) |
Modifier and Type | Method and Description |
---|---|
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
|
void |
setAuthenticationFactory(AuthenticationFactory<Authentication> authenticationFactory)
You can optionally inject custom implementation of AuthenticationFactory class
|
afterPropertiesSet
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 SpringAuthenticationServiceImpl(String url)
url
- KeyShield SSO Server urlpublic boolean authenticate(HttpServletRequest request)
ServletAuthenticationService
authenticate
in interface ServletAuthenticationService
authenticate
in class DefaultAuthenticationServiceImpl
request
- current HTTP requestServletAuthenticationService.KSHIELD_PRINCIPAL_TOKEN
protected boolean doAuthentication(HttpServletRequest request, UserInfo userInfo)
DefaultAuthenticationServiceImpl
doAuthentication
in class DefaultAuthenticationServiceImpl
request
- current HTTP requestuserInfo
- User data returned by KeyShield SSO Server clientpublic void setAuthenticationFactory(AuthenticationFactory<Authentication> authenticationFactory)
authenticationFactory
- - Custom AuthenticationFactory instanceCopyright © 2013 TDP Ltd. All Rights Reserved.