public class DelegatingAuthenticationServiceImpl extends Object implements ServletAuthenticationService
KSHIELD_PRINCIPAL_TOKEN
Constructor and Description |
---|
DelegatingAuthenticationServiceImpl(List<ServletAuthenticationService> services) |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(HttpServletRequest request)
Return true if any service returns true
|
void |
checkService()
Checks KeyShield SSO Server status
|
UserInfo |
createUserInfo(String ipAddr)
Return first non null userInfo
|
void |
destroy()
Cleanup Authentication service before destruction
|
void |
init()
Initializes Authentication service after creation
|
void |
sendClientMessage(ClientMessage msg)
Sends message to another user(s) idetified by IP or FDN
|
void |
sendClientMessage(String from,
String to,
String message)
Sends message to another user(s) idetified by IP or FDN
|
public DelegatingAuthenticationServiceImpl(List<ServletAuthenticationService> services)
services
- list of AuthenticationService instancespublic boolean authenticate(HttpServletRequest request)
authenticate
in interface ServletAuthenticationService
request
- current HTTP requestServletAuthenticationService.KSHIELD_PRINCIPAL_TOKEN
public void checkService() throws KShieldClientException
AuthenticationService
checkService
in interface AuthenticationService
KShieldClientException
- in case of other communication or validation errorpublic UserInfo createUserInfo(String ipAddr)
createUserInfo
in interface AuthenticationService
ipAddr
- remote request IP addresspublic void destroy()
AuthenticationService
destroy
in interface AuthenticationService
public void init()
AuthenticationService
init
in interface AuthenticationService
public void sendClientMessage(ClientMessage msg) throws KShieldClientException
AuthenticationService
sendClientMessage
in interface AuthenticationService
msg
- Client message dataKShieldClientException
- in case of other communication or validation errorpublic void sendClientMessage(String from, String to, String message) throws KShieldClientException
AuthenticationService
sendClientMessage
in interface AuthenticationService
from
- Name (Full Name) of message senderto
- Message target (IP or FDN)message
- Message textKShieldClientException
- in case of other communication or validation errorCopyright © 2013 TDP Ltd. All Rights Reserved.