public interface CoreTokenStore
CoreTokenStore
interface defines methods for managing
resources of the OpenSSO Core Token service.Modifier and Type | Method and Description |
---|---|
String |
createToken(Subject subject,
org.json.JSONObject attributes)
Creates a token.
|
void |
deleteToken(Subject subject,
String tokenId)
Deletes a token.
|
String |
readToken(Subject subject,
String tokenId)
Reads token attributes.
|
org.json.JSONArray |
searchTokens(Subject subject,
String queryString)
Searches tokens.
|
void |
updateToken(Subject subject,
String tokenId,
String eTag,
org.json.JSONObject newVals)
Updates a token.
|
String createToken(Subject subject, org.json.JSONObject attributes) throws CoreTokenException, org.json.JSONException
subject
- Subject of the caller.attributes
- Attributes of the token to be created.CoreTokenException
- if failed to create the token.org.json.JSONException
- if failed to parse the JSON-encoded token
attributes.String readToken(Subject subject, String tokenId) throws CoreTokenException
subject
- Subject of the caller.tokenId
- token.id of the token to be retrieved.CoreTokenException
- if failed to read the token.void deleteToken(Subject subject, String tokenId) throws CoreTokenException
subject
- Subject of the callertokenId
- token.id of the token to be deleted.CoreTokenException
- if failed to delete the token.org.json.JSONException
- if failed to parse the JSON-encoded token
attributes.org.json.JSONArray searchTokens(Subject subject, String queryString) throws CoreTokenException
subject
- Subject of the callerqueryString
- HTTP query string.CoreTokenException
void updateToken(Subject subject, String tokenId, String eTag, org.json.JSONObject newVals) throws CoreTokenException, org.json.JSONException
subject
- caller subject.tokenId
- token.id of the token to be updated.eTag
- etag attribute value, this must match that presents in the
the token to be updated.newVals
- attributes to be updated.CoreTokenException
- if failed to update the token.org.json.JSONException
- if failed to parse the JSON-encoded attributes.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.