public interface OAuthTokenDao extends Dao
OAuthAccessTokenModel and OAuthRefreshTokenModel access.| Modifier and Type | Method and Description |
|---|---|
OAuthAccessTokenModel |
findAccessTokenByAuthenticationId(java.lang.String authenticationId)
Finds access token by authentication identifier (key)
|
OAuthAccessTokenModel |
findAccessTokenById(java.lang.String id)
Finds access token by given identifier (key)
|
OAuthAccessTokenModel |
findAccessTokenByRefreshTokenId(java.lang.String refreshTokenId)
Finds access token by identifier of the refresh token
|
java.util.List<OAuthAccessTokenModel> |
findAccessTokenListByRefreshTokenId(java.lang.String refreshTokenId)
Finds access tokens related to refresh token with given identifier
|
java.util.List<OAuthAccessTokenModel> |
findAccessTokenListForClient(java.lang.String clientId)
Finds access tokens for client
|
java.util.List<OAuthAccessTokenModel> |
findAccessTokenListForClientAndUser(java.lang.String clientId,
java.lang.String userName)
Finds access tokens based on client identifier and user name;
|
java.util.List<OAuthAccessTokenModel> |
findAccessTokenListForUser(java.lang.String userName)
Finds access tokens for user with given user name
|
OAuthRefreshTokenModel |
findRefreshTokenById(java.lang.String id)
Finds refresh token by given identifier (key)
|
OAuthAccessTokenModel findAccessTokenById(java.lang.String id)
id - token identifierModelNotFoundException - if access token with given id doesn't existOAuthRefreshTokenModel findRefreshTokenById(java.lang.String id)
id - refresh token identifierModelNotFoundException - if refresh token with given id doesn't existOAuthAccessTokenModel findAccessTokenByRefreshTokenId(java.lang.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(java.lang.String authenticationId)
authenticationId - authentication identifierModelNotFoundException - if there is no access token related to given authenticationAmbiguousIdentifierException - if there is multiple access token related to given authenticationjava.util.List<OAuthAccessTokenModel> findAccessTokenListByRefreshTokenId(java.lang.String refreshTokenId)
refreshTokenId - - refresh token identifierjava.util.List<OAuthAccessTokenModel> findAccessTokenListForClient(java.lang.String clientId)
clientId - client identifierjava.util.List<OAuthAccessTokenModel> findAccessTokenListForUser(java.lang.String userName)
userName - user namejava.util.List<OAuthAccessTokenModel> findAccessTokenListForClientAndUser(java.lang.String clientId, java.lang.String userName)
clientId - client identifieruserName - user nameCopyright © 2018 SAP SE. All Rights Reserved.