Interface OAuth2AuthSchemeService
- All Known Implementing Classes:
SuperUserOAuth2AuthSchemeService
public interface OAuth2AuthSchemeService
-
Method Summary
Modifier and TypeMethodDescriptioncreateAuthScheme(CreateOrUpdateOAuth2AuthSchemeRequest authSchemeRequest) Creates anOAuth2AuthScheme.voiddeleteAuthScheme(String authSchemeId) Deletes theOAuth2AuthSchemewith the supplied auth scheme ID.getAuthScheme(String authSchemeId) Fetches a specificOAuth2AuthSchemeinstance based on ID.getAuthSchemes(int offset, int count, List<String> tags) Lists allOAuth2AuthSchemeinstancesupdateAuthScheme(String authSchemeId, CreateOrUpdateOAuth2AuthSchemeRequest authSchemeRequest) Updates the suppliedOAuth2AuthScheme
-
Method Details
-
getAuthSchemes
Lists allOAuth2AuthSchemeinstances- Parameters:
offset-count-tags-- Returns:
- a
PaginationofOAuth2AuthSchemeinstances
-
getAuthScheme
Fetches a specificOAuth2AuthSchemeinstance 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- theCreateOrUpdateOAuth2AuthSchemeRequestwith the information to update the auth scheme. Returns error if the auth scheme does not exist.- Returns:
- a
CreateOrUpdateOAuth2AuthSchemeResponseas it was updated.
-
createAuthScheme
CreateOrUpdateOAuth2AuthSchemeResponse createAuthScheme(CreateOrUpdateOAuth2AuthSchemeRequest authSchemeRequest) Creates anOAuth2AuthScheme. Returns error if scheme already exists.- Parameters:
authSchemeRequest- theCreateOrUpdateOAuth2AuthSchemeRequestwith the information to create the auth scheme.- Returns:
- a
CreateOrUpdateOAuth2AuthSchemeResponseas it was created
-
deleteAuthScheme
Deletes theOAuth2AuthSchemewith the supplied auth scheme ID.- Parameters:
authSchemeId- the auth scheme ID.
-