Interface OAuth2AuthSchemeService
- All Known Implementing Classes:
SuperUserOAuth2AuthSchemeService
public interface OAuth2AuthSchemeService
-
Method Summary
Modifier and TypeMethodDescriptioncreateAuthScheme
(CreateOrUpdateOAuth2AuthSchemeRequest authSchemeRequest) Creates anOAuth2AuthScheme
.void
deleteAuthScheme
(String authSchemeId) Deletes theOAuth2AuthScheme
with the supplied auth scheme ID.getAuthScheme
(String authSchemeId) Fetches a specificOAuth2AuthScheme
instance based on ID.getAuthSchemes
(int offset, int count, List<String> tags) Lists allOAuth2AuthScheme
instancesupdateAuthScheme
(String authSchemeId, CreateOrUpdateOAuth2AuthSchemeRequest authSchemeRequest) Updates the suppliedOAuth2AuthScheme
-
Method Details
-
getAuthSchemes
Lists allOAuth2AuthScheme
instances- Parameters:
offset
-count
-tags
-- Returns:
- a
Pagination
ofOAuth2AuthScheme
instances
-
getAuthScheme
Fetches a specificOAuth2AuthScheme
instance based on ID. If not found, an exception is raised.- Parameters:
authSchemeId
- the auth scheme ID- Returns:
- the
OAuth2AuthScheme
, never null
-
updateAuthScheme
CreateOrUpdateOAuth2AuthSchemeResponse updateAuthScheme(String authSchemeId, CreateOrUpdateOAuth2AuthSchemeRequest authSchemeRequest) Updates the suppliedOAuth2AuthScheme
- Parameters:
authSchemeId
-authSchemeRequest
- theCreateOrUpdateOAuth2AuthSchemeRequest
with the information to update the auth scheme. Returns error if the auth scheme does not exist.- Returns:
- a
CreateOrUpdateOAuth2AuthSchemeResponse
as it was updated.
-
createAuthScheme
CreateOrUpdateOAuth2AuthSchemeResponse createAuthScheme(CreateOrUpdateOAuth2AuthSchemeRequest authSchemeRequest) Creates anOAuth2AuthScheme
. Returns error if scheme already exists.- Parameters:
authSchemeRequest
- theCreateOrUpdateOAuth2AuthSchemeRequest
with the information to create the auth scheme.- Returns:
- a
CreateOrUpdateOAuth2AuthSchemeResponse
as it was created
-
deleteAuthScheme
Deletes theOAuth2AuthScheme
with the supplied auth scheme ID.- Parameters:
authSchemeId
- the auth scheme ID.
-