public class DefaultOAuthTokenDao extends AbstractItemDao implements OAuthTokenDao
flexibleSearchService, modelService| Constructor and Description |
|---|
DefaultOAuthTokenDao() |
| Modifier and Type | Method and Description |
|---|---|
protected <T> List<T> |
doSearch(String query,
Map<String,Object> params,
Class<T> resultClass) |
OAuthAccessTokenModel |
findAccessTokenByAuthenticationId(String authenticationId)
Finds access token by authentication identifier (key)
|
OAuthAccessTokenModel |
findAccessTokenById(String id)
Finds access token by given identifier (key)
|
OAuthAccessTokenModel |
findAccessTokenByRefreshTokenId(String refreshTokenId)
Finds access token by identifier of the refresh token
|
List<OAuthAccessTokenModel> |
findAccessTokenListByRefreshTokenId(String refreshTokenId)
Finds access tokens related to refresh token with given identifier
|
List<OAuthAccessTokenModel> |
findAccessTokenListForClient(String clientId)
Finds access tokens for client
|
List<OAuthAccessTokenModel> |
findAccessTokenListForClientAndUser(String clientId,
String userName)
Finds access tokens based on client identifier and user name;
|
List<OAuthAccessTokenModel> |
findAccessTokenListForUser(String userName)
Finds access tokens for user with given user name
|
OAuthRefreshTokenModel |
findRefreshTokenById(String id)
Finds refresh token by given identifier (key)
|
getAllSources, getFlexibleSearchService, getModelService, getSource, load, loadAll, search, search, searchUnique, setFlexibleSearchService, setModelServicepublic OAuthAccessTokenModel findAccessTokenById(String id)
OAuthTokenDaofindAccessTokenById in interface OAuthTokenDaoid - token identifierpublic OAuthRefreshTokenModel findRefreshTokenById(String id)
OAuthTokenDaofindRefreshTokenById in interface OAuthTokenDaoid - refresh token identifierpublic OAuthAccessTokenModel findAccessTokenByRefreshTokenId(String refreshTokenId)
OAuthTokenDaofindAccessTokenByRefreshTokenId in interface OAuthTokenDaorefreshTokenId - refresh token identifierpublic List<OAuthAccessTokenModel> findAccessTokenListByRefreshTokenId(String refreshTokenId)
OAuthTokenDaofindAccessTokenListByRefreshTokenId in interface OAuthTokenDaorefreshTokenId - - refresh token identifierpublic OAuthAccessTokenModel findAccessTokenByAuthenticationId(String authenticationId)
OAuthTokenDaofindAccessTokenByAuthenticationId in interface OAuthTokenDaoauthenticationId - authentication identifierpublic List<OAuthAccessTokenModel> findAccessTokenListForClient(String clientId)
OAuthTokenDaofindAccessTokenListForClient in interface OAuthTokenDaoclientId - client identifierpublic List<OAuthAccessTokenModel> findAccessTokenListForUser(String userName)
OAuthTokenDaofindAccessTokenListForUser in interface OAuthTokenDaouserName - user namepublic List<OAuthAccessTokenModel> findAccessTokenListForClientAndUser(String clientId, String userName)
OAuthTokenDaofindAccessTokenListForClientAndUser in interface OAuthTokenDaoclientId - client identifieruserName - user nameCopyright © 2017 SAP SE. All Rights Reserved.