public final class SecureQueuedStorage extends QueuedStorage implements SecureStorage
QueuedStorage
. I.e. its delegate is an instance of
SecureStorage
.SecureStorage
,
QueuedStorage
delegate, executor, fileExecutor
Constructor and Description |
---|
SecureQueuedStorage(SecureStorage storage) |
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createAdd, createQuery, createRemove, createReplace, createUpdate, getAgentId, getConnection, getCount, loadFile, purge, registerCategory, removePojo, saveFile, setAgentId, shutdown
public SecureQueuedStorage(SecureStorage storage)
public AuthToken generateToken() throws StorageException
SecureStorage
generateToken
in interface SecureStorage
StorageException
- if authentication fails at this pointpublic boolean verifyToken(AuthToken token)
SecureStorage
verifyToken
in interface SecureStorage
true
if authentication succeeded, false
otherwiseCopyright © 2013. All rights reserved.