public interface OAuthTokenDao extends Dao
OAuthAccessTokenModel and OAuthRefreshTokenModel access.| Modifier and Type | Method and Description |
|---|---|
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)
|
OAuthAccessTokenModel findAccessTokenById(String id)
id - token identifierModelNotFoundException - if access token with given id doesn't existOAuthRefreshTokenModel findRefreshTokenById(String id)
id - refresh token identifierModelNotFoundException - if refresh token with given id doesn't existOAuthAccessTokenModel findAccessTokenByRefreshTokenId(String refreshTokenId)
refreshTokenId - refresh token identifierModelNotFoundException - if there is no access token related to refresh token or refresh token with given identifier doesn't
existAmbiguousIdentifierException - if there is multiple access token related to refresh tokenOAuthAccessTokenModel findAccessTokenByAuthenticationId(String authenticationId)
authenticationId - authentication identifierModelNotFoundException - if there is no access token related to given authenticationAmbiguousIdentifierException - if there is multiple access token related to given authenticationList<OAuthAccessTokenModel> findAccessTokenListByRefreshTokenId(String refreshTokenId)
refreshTokenId - - refresh token identifierList<OAuthAccessTokenModel> findAccessTokenListForClient(String clientId)
clientId - client identifierList<OAuthAccessTokenModel> findAccessTokenListForUser(String userName)
userName - user nameList<OAuthAccessTokenModel> findAccessTokenListForClientAndUser(String clientId, String userName)
clientId - client identifieruserName - user nameCopyright © 2017 SAP SE. All Rights Reserved.