Package dev.getelements.elements.sdk.dao
Interface OidcAuthSchemeDao
- All Known Implementing Classes:
MongoOidcAuthSchemeDao
public interface OidcAuthSchemeDao
-
Method Summary
Modifier and TypeMethodDescriptioncreateAuthScheme(OidcAuthScheme authScheme) Creates anAuthSchemevoiddeleteAuthScheme(String authSchemeId) Deletes theAuthSchemewith the supplied auth scheme ID.findAuthScheme(String authSchemeIssuerNameOrId) Finds anAuthScheme, returning anOptional.default OidcAuthSchemegetAuthScheme(String authSchemeId) Fetches a specificAuthSchemeinstance based on ID.getAuthSchemes(int offset, int count, List<String> tags) Lists allAuthSchemeinstancesupdateAuthScheme(OidcAuthScheme authScheme) Updates the suppliedAuthScheme
-
Method Details
-
getAuthSchemes
Lists allAuthSchemeinstances- Parameters:
offset-count-tags-- Returns:
- a
PaginationofAuthSchemeinstances
-
findAuthScheme
Finds anAuthScheme, returning anOptional.- Parameters:
authSchemeIssuerNameOrId- the auth scheme id- Returns:
- an
Optional<AuthScheme>
-
getAuthScheme
Fetches a specificAuthSchemeinstance based on ID. If not found, an exception is raised.- Parameters:
authSchemeId- the auth scheme ID- Returns:
- the
AuthScheme, never null
-
updateAuthScheme
Updates the suppliedAuthScheme- Parameters:
authScheme- theUpdateAuthSchemeRequestwith the information to update the authScheme- Returns:
- a
UpdateAuthSchemeResponseas it was created
-
createAuthScheme
Creates anAuthScheme- Parameters:
authScheme- theCreateAuthSchemeRequestwith the information to create the authScheme- Returns:
- a
CreateAuthSchemeResponseas it was created
-
deleteAuthScheme
Deletes theAuthSchemewith the supplied auth scheme ID.- Parameters:
authSchemeId- the auth scheme ID.
-