public class ExtendedAccessTokenDAOImpl
extends org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImpl
| Modifier and Type | Field and Description |
|---|---|
protected static String |
AUTHZ_USER |
protected static String |
LOWER_AUTHZ_USER |
protected static String |
UTC |
| Constructor and Description |
|---|
ExtendedAccessTokenDAOImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected org.wso2.carbon.identity.oauth.tokenprocessor.TokenPersistenceProcessor |
createPersistenceProcessor() |
String |
getAccessTokenByTokenId(String tokenId) |
Set<org.wso2.carbon.identity.oauth2.model.AccessTokenDO> |
getAccessTokens(String consumerKey,
org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser userName,
String userStoreDomain,
boolean includeExpired) |
Set<org.wso2.carbon.identity.oauth2.model.AccessTokenDO> |
getAccessTokensByBindingRef(org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser user,
String bindingRef) |
Set<org.wso2.carbon.identity.oauth2.model.AccessTokenDO> |
getAccessTokensByBindingRef(String bindingRef) |
Set<org.wso2.carbon.identity.oauth2.model.AccessTokenDO> |
getAccessTokensByTenant(int tenantId) |
Set<String> |
getAccessTokensByUser(org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser authenticatedUser) |
Set<org.wso2.carbon.identity.oauth2.model.AccessTokenDO> |
getAccessTokensByUserForOpenidScope(org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser authenticatedUser) |
Set<org.wso2.carbon.identity.oauth2.model.AccessTokenDO> |
getAccessTokensOfUserStore(int tenantId,
String userStoreDomain) |
Set<String> |
getActiveTokensByConsumerKey(String consumerKey) |
Set<org.wso2.carbon.identity.oauth2.model.AccessTokenDO> |
getActiveTokenSetWithTokenIdByConsumerKeyForOpenidScope(String consumerKey) |
protected Connection |
getConnection() |
protected org.wso2.carbon.identity.oauth.tokenprocessor.TokenPersistenceProcessor |
getHashingPersistenceProcessor() |
org.wso2.carbon.identity.oauth2.model.AccessTokenDO |
getLatestAccessToken(String consumerKey,
org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser authzUser,
String userStoreDomain,
String scope,
boolean includeExpiredTokens) |
org.wso2.carbon.identity.oauth2.model.AccessTokenDO |
getLatestAccessToken(String consumerKey,
org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser authzUser,
String userStoreDomain,
String scope,
String tokenBindingReference,
boolean includeExpiredTokens) |
List<org.wso2.carbon.identity.oauth2.model.AccessTokenDO> |
getLatestAccessTokens(String consumerKey,
org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser authzUser,
String userStoreDomain,
String scope,
boolean includeExpiredTokens,
int limit) |
protected org.wso2.carbon.identity.oauth.tokenprocessor.TokenPersistenceProcessor |
getPersistenceProcessor() |
String |
getTokenIdByAccessToken(String token) |
Set<String> |
getTokenIdBySessionIdentifier(String sessionId) |
boolean |
insertAccessToken(String accessToken,
String consumerKey,
org.wso2.carbon.identity.oauth2.model.AccessTokenDO newAccessTokenDO,
org.wso2.carbon.identity.oauth2.model.AccessTokenDO existingAccessTokenDO,
String rawUserStoreDomain) |
void |
insertAccessToken(String accessToken,
String consumerKey,
org.wso2.carbon.identity.oauth2.model.AccessTokenDO accessTokenDO,
String userStoreDomain) |
protected boolean |
isPersistenceEnabled() |
void |
storeTokenToSessionMapping(String sessionContextIdentifier,
String tokenId,
int tenantId) |
void |
updateAccessTokenState(String tokenId,
String tokenState) |
void |
updateAccessTokenState(String tokenId,
String tokenState,
String grantType) |
void |
updateTokenIsConsented(String tokenId,
boolean isConsentedGrant) |
void |
updateUserStoreDomain(int tenantId,
String currentUserStoreDomain,
String newUserStoreDomain) |
getAccessToken, getAccessTokenDOfromTokenIdentifier, getActiveAcessTokenDataByConsumerKey, getLatestAccessTokens, invalidateAndCreateNewAccessToken, invalidateAndCreateNewAccessToken, revokeAccessToken, revokeAccessTokens, revokeAccessTokens, revokeAccessTokensInBatch, revokeAccessTokensInBatch, revokeAccessTokensIndividually, revokeAccessTokensIndividuallyprotected static final String UTC
protected static final String AUTHZ_USER
protected static final String LOWER_AUTHZ_USER
public void insertAccessToken(String accessToken, String consumerKey, org.wso2.carbon.identity.oauth2.model.AccessTokenDO accessTokenDO, String userStoreDomain)
insertAccessToken in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOinsertAccessToken in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic boolean insertAccessToken(String accessToken, String consumerKey, org.wso2.carbon.identity.oauth2.model.AccessTokenDO newAccessTokenDO, org.wso2.carbon.identity.oauth2.model.AccessTokenDO existingAccessTokenDO, String rawUserStoreDomain)
insertAccessToken in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOinsertAccessToken in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic void updateAccessTokenState(String tokenId, String tokenState, String grantType)
updateAccessTokenState in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOupdateAccessTokenState in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic Set<String> getTokenIdBySessionIdentifier(String sessionId)
getTokenIdBySessionIdentifier in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOgetTokenIdBySessionIdentifier in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic void storeTokenToSessionMapping(String sessionContextIdentifier, String tokenId, int tenantId)
storeTokenToSessionMapping in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOstoreTokenToSessionMapping in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic Set<org.wso2.carbon.identity.oauth2.model.AccessTokenDO> getAccessTokens(String consumerKey, org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser userName, String userStoreDomain, boolean includeExpired)
getAccessTokens in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOgetAccessTokens in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic Set<String> getAccessTokensByUser(org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser authenticatedUser)
getAccessTokensByUser in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOgetAccessTokensByUser in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic Set<org.wso2.carbon.identity.oauth2.model.AccessTokenDO> getAccessTokensByUserForOpenidScope(org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser authenticatedUser)
getAccessTokensByUserForOpenidScope in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOgetAccessTokensByUserForOpenidScope in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic Set<org.wso2.carbon.identity.oauth2.model.AccessTokenDO> getAccessTokensByTenant(int tenantId)
getAccessTokensByTenant in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOgetAccessTokensByTenant in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic Set<org.wso2.carbon.identity.oauth2.model.AccessTokenDO> getAccessTokensOfUserStore(int tenantId, String userStoreDomain)
getAccessTokensOfUserStore in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOgetAccessTokensOfUserStore in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic Set<org.wso2.carbon.identity.oauth2.model.AccessTokenDO> getAccessTokensByBindingRef(org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser user, String bindingRef)
getAccessTokensByBindingRef in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOgetAccessTokensByBindingRef in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic Set<org.wso2.carbon.identity.oauth2.model.AccessTokenDO> getAccessTokensByBindingRef(String bindingRef)
getAccessTokensByBindingRef in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOgetAccessTokensByBindingRef in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic String getAccessTokenByTokenId(String tokenId)
getAccessTokenByTokenId in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOgetAccessTokenByTokenId in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic Set<String> getActiveTokensByConsumerKey(String consumerKey)
getActiveTokensByConsumerKey in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOgetActiveTokensByConsumerKey in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic Set<org.wso2.carbon.identity.oauth2.model.AccessTokenDO> getActiveTokenSetWithTokenIdByConsumerKeyForOpenidScope(String consumerKey)
getActiveTokenSetWithTokenIdByConsumerKeyForOpenidScope in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOgetActiveTokenSetWithTokenIdByConsumerKeyForOpenidScope in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic String getTokenIdByAccessToken(String token)
getTokenIdByAccessToken in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOgetTokenIdByAccessToken in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic org.wso2.carbon.identity.oauth2.model.AccessTokenDO getLatestAccessToken(String consumerKey, org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser authzUser, String userStoreDomain, String scope, boolean includeExpiredTokens)
getLatestAccessToken in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOgetLatestAccessToken in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic List<org.wso2.carbon.identity.oauth2.model.AccessTokenDO> getLatestAccessTokens(String consumerKey, org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser authzUser, String userStoreDomain, String scope, boolean includeExpiredTokens, int limit)
getLatestAccessTokens in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOgetLatestAccessTokens in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic org.wso2.carbon.identity.oauth2.model.AccessTokenDO getLatestAccessToken(String consumerKey, org.wso2.carbon.identity.application.authentication.framework.model.AuthenticatedUser authzUser, String userStoreDomain, String scope, String tokenBindingReference, boolean includeExpiredTokens)
getLatestAccessToken in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOgetLatestAccessToken in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic void updateUserStoreDomain(int tenantId,
String currentUserStoreDomain,
String newUserStoreDomain)
updateUserStoreDomain in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOupdateUserStoreDomain in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic void updateTokenIsConsented(String tokenId, boolean isConsentedGrant)
updateTokenIsConsented in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOupdateTokenIsConsented in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplpublic void updateAccessTokenState(String tokenId, String tokenState)
updateAccessTokenState in interface org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOupdateAccessTokenState in class org.wso2.carbon.identity.oauth2.dao.AccessTokenDAOImplprotected org.wso2.carbon.identity.oauth.tokenprocessor.TokenPersistenceProcessor getPersistenceProcessor()
protected org.wso2.carbon.identity.oauth.tokenprocessor.TokenPersistenceProcessor getHashingPersistenceProcessor()
protected org.wso2.carbon.identity.oauth.tokenprocessor.TokenPersistenceProcessor createPersistenceProcessor()
protected boolean isPersistenceEnabled()
protected Connection getConnection()
Copyright © 2024 WSO2. All rights reserved.