public interface KShieldAuthManager
Modifier and Type | Method and Description |
---|---|
void |
addAuth(UserInfo userInfo)
Call this after successfull kshield authentication
|
void |
addEndpoint(String ipAddress,
KShieldEndpoint ws)
Call this after establishing connection with WebSocket Endpoint
|
boolean |
hasAuth(String ipAddress,
String userID)
This method checks kshield server if authentication info is missing
|
String |
poll(String ipAddress,
String kshieldUserID,
boolean authenticated) |
void |
registerOnLoginHandler(AuthChangeHandler handler)
Register custom handler called after successful kshield authentication
|
void |
registerOnLogoutHandler(AuthChangeHandler handler)
Register custom handler called after kshield authentication removal
|
void |
removeAuth(String ipAddress)
Call this after denied kshield authentication from given ip address
|
void |
removeEndpoint(String ipAddress,
KShieldEndpoint ws)
IMPORTANT: Call this after closing connection with WebSocket Endpoint
|
void |
resetAuth(String ipAddress)
Remove all info about authentication from given ip address
|
void addAuth(UserInfo userInfo)
userInfo
- void addEndpoint(String ipAddress, KShieldEndpoint ws)
ipAddress
- ws
- WebSocket Endpoint instanceboolean hasAuth(String ipAddress, String userID)
ipAddress
- userID
- String poll(String ipAddress, String kshieldUserID, boolean authenticated)
ipAddress
- kshieldUserID
- userID returned by KeyShield SSO serverauthenticated
- user is authenticatedvoid registerOnLoginHandler(AuthChangeHandler handler)
handler
- void registerOnLogoutHandler(AuthChangeHandler handler)
handler
- void removeAuth(String ipAddress)
ipAddress
- void removeEndpoint(String ipAddress, KShieldEndpoint ws)
ipAddress
- ws
- WebSocket Endpoint instanceCopyright © 2013 TDP Ltd. All Rights Reserved.