public interface SecureStorage extends Storage
generateToken()
.
This should happen over an authenticated and secured connection, thus authenticating the client
in the storage. The returned AuthToken will carry a client-token (that has been generated by the
client) and an auth-token (generated by the storage). If authentication fails at this stage
(e.g. because the client does not have the necessary privileges/roles), a StorageException is
thrown.
verifyToken(AuthToken)
to
verify the validity of the tokens. Again, this needs to happen through an authenticated and
secured connection, thus authenticating the receiver. The storage verifies that it generated
the same token for an authenticated client before, and replies with true if it succeeds, and
false otherwise.Modifier and Type | Method and Description |
---|---|
AuthToken |
generateToken()
Generates a token in the storage that can be used to authenticate cmd channel requests.
|
boolean |
verifyToken(AuthToken token)
Verifies the specified token in the storage.
|
createAdd, createQuery, createRemove, createReplace, createUpdate, getAgentId, getConnection, getCount, loadFile, purge, registerCategory, removePojo, saveFile, setAgentId, shutdown
AuthToken generateToken() throws StorageException
StorageException
- if authentication fails at this pointboolean verifyToken(AuthToken token)
true
if authentication succeeded, false
otherwiseCopyright © 2013. All rights reserved.