Package dev.getelements.elements.sdk.dao
Interface AuthSchemeDao
- All Known Implementing Classes:
MongoAuthSchemeDao
public interface AuthSchemeDao
-
Method Summary
Modifier and TypeMethodDescriptioncreateAuthScheme
(AuthScheme authScheme) Creates anAuthScheme
void
deleteAuthScheme
(String authSchemeId) Deletes theAuthScheme
with the supplied auth scheme ID.findAuthScheme
(String authSchemeId) Finds anAuthScheme
, returning anOptional<AuthScheme>
.default AuthScheme
getAuthScheme
(String authSchemeId) Fetches a specificAuthScheme
instance based on ID.getAuthSchemes
(int offset, int count, List<String> tags) Lists allAuthScheme
instancesgetAuthSchemesByAudience
(List<String> audience) Gets allAuthScheme
instances with the supplied audiences.updateAuthScheme
(AuthScheme authScheme) Updates the suppliedAuthScheme
-
Method Details
-
getAuthSchemes
Lists allAuthScheme
instances- Parameters:
offset
-count
-tags
-- Returns:
- a
Pagination
ofAuthScheme
instances
-
findAuthScheme
Finds anAuthScheme
, returning anOptional<AuthScheme>
.- Parameters:
authSchemeId
- the auth scheme id- Returns:
- an
Optional<AuthScheme>
-
getAuthScheme
Fetches a specificAuthScheme
instance based on ID. If not found, an exception is raised.- Parameters:
authSchemeId
- the auth scheme ID- Returns:
- the
AuthScheme
, never null
-
getAuthSchemesByAudience
Gets allAuthScheme
instances with the supplied audiences.- Parameters:
audience
- the audience
-
updateAuthScheme
Updates the suppliedAuthScheme
- Parameters:
authScheme
- theUpdateAuthSchemeRequest
with the information to update the authScheme- Returns:
- a
UpdateAuthSchemeResponse
as it was created
-
createAuthScheme
Creates anAuthScheme
- Parameters:
authScheme
- theCreateAuthSchemeRequest
with the information to create the authScheme- Returns:
- a
CreateAuthSchemeResponse
as it was created
-
deleteAuthScheme
Deletes theAuthScheme
with the supplied auth scheme ID.- Parameters:
authSchemeId
- the auth scheme ID.
-