public interface StreamAuthenticator
| Modifier and Type | Field and Description |
|---|---|
static long |
SECURITY_FAILURE_WAIT_TIME_MS
Server wait time in ms before drop connection if authentication fails
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate()
Returns whether the current token is valid.
|
boolean |
checkAccess()
Returns whether the current token is valid and grants access to the
current table Ids.
|
long |
getLastCheckTimeMs()
Gets the time stamp of last check.
|
void |
setTableIds(String[] tableIds)
Specifies the table Ids.
|
void |
setToken(byte[] token)
Specifies the login token.
|
static final long SECURITY_FAILURE_WAIT_TIME_MS
void setToken(byte[] token)
token - login token in bytesvoid setTableIds(String[] tableIds)
tableIds - set of subscribed table id stringsboolean authenticate()
boolean checkAccess()
long getLastCheckTimeMs()
Copyright © 2024. All rights reserved.