public interface TokenStorageAdapter
Modifier and Type | Method and Description |
---|---|
Token |
create(Token token,
org.forgerock.util.Options options)
Create the Token in the database.
|
PartialToken |
delete(String tokenId,
org.forgerock.util.Options options)
Performs a delete against the Token ID provided.
|
Collection<PartialToken> |
partialQuery(TokenFilter query)
Performs a partial query using the provided filter.
|
Collection<Token> |
query(TokenFilter query)
Performs a full-token query using the provided filter.
|
Token |
read(String tokenId,
org.forgerock.util.Options options)
Performs a read against the database connection and converts the result into a Token.
|
ContinuousQuery |
startContinuousQuery(TokenFilter filter,
ContinuousQueryListener listener)
Performs a continuous query using the provided filter.
|
Token |
update(Token previous,
Token updated,
org.forgerock.util.Options options)
Update the Token based on whether there were any changes between the two.
|
Token create(Token token, org.forgerock.util.Options options) throws DataLayerException
token
- Non null Token to create.options
- Non null Options for the operations.DataLayerException
- If the operation failed for a known reason.Token read(String tokenId, org.forgerock.util.Options options) throws DataLayerException
tokenId
- The id of the Token to read.options
- Non null Options for the operations.DataLayerException
Token update(Token previous, Token updated, org.forgerock.util.Options options) throws DataLayerException
previous
- The non null previous Token to check against.updated
- The non null Token to update with.options
- The non null Options for the operation.DataLayerException
- If the operation failed for a known reason.OptimisticConcurrencyCheckFailedException
- If the operation failed due to an assertion on the tokens ETag.PartialToken delete(String tokenId, org.forgerock.util.Options options) throws DataLayerException
tokenId
- The non null Token ID to delete.options
- The non null Options for the operation.PartialToken
containing at least the CoreTokenField.TOKEN_ID
.LdapOperationFailedException
- If the operation failed, this exception will capture the reason.OptimisticConcurrencyCheckFailedException
- If the operation failed due to an assertion on the tokens ETag.DataLayerException
Collection<Token> query(TokenFilter query) throws DataLayerException
query
- The non null filter specification.DataLayerException
- If the operation failed, this exception will capture the reason.Collection<PartialToken> partialQuery(TokenFilter query) throws DataLayerException
query
- The non null filter specification.DataLayerException
- If the operation failed, this exception will capture the reason.ContinuousQuery startContinuousQuery(TokenFilter filter, ContinuousQueryListener listener) throws DataLayerException
filter
- The non null filter specification.DataLayerException
- If the operation failed, this exception will capture the reason.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.