public class OpenSSOCoreTokenStore extends Object implements CoreTokenStore
OpenSSOCoreTokenStore
implements the core token store
using SM store.Modifier and Type | Field and Description |
---|---|
static String |
ETAG_ATTR |
static String |
JSON_ATTR |
static String |
SEARCHABLE_ATTR |
static String |
SERVICE_DN |
Constructor and Description |
---|
OpenSSOCoreTokenStore() |
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.
|
static String |
getCoreTokenDN(String tokenId) |
String |
readToken(Subject adminSubject,
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.
|
public static String JSON_ATTR
public static String SEARCHABLE_ATTR
public static String ETAG_ATTR
public static final String SERVICE_DN
public String createToken(Subject subject, org.json.JSONObject attributes) throws CoreTokenException, org.json.JSONException
CoreTokenStore
createToken
in interface CoreTokenStore
subject
- attributes
- CoreTokenException
org.json.JSONException
public String readToken(Subject adminSubject, String tokenId) throws CoreTokenException
CoreTokenStore
readToken
in interface CoreTokenStore
adminSubject
- tokenId
- CoreTokenException
public void deleteToken(Subject subject, String tokenId) throws CoreTokenException
CoreTokenStore
deleteToken
in interface CoreTokenStore
subject
- tokenId
- CoreTokenException
org.json.JSONException
public org.json.JSONArray searchTokens(Subject subject, String queryString) throws CoreTokenException
CoreTokenStore
searchTokens
in interface CoreTokenStore
subject
- queryString
- CoreTokenException
public void updateToken(Subject subject, String tokenId, String eTag, org.json.JSONObject newVals) throws CoreTokenException, org.json.JSONException
updateToken
in interface CoreTokenStore
subject
- caller subject.tokenId
- token.id of the token to be updated.eTag
- newVals
- CoreTokenException
org.json.JSONException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.