Interface MapSubjectCredentialManagerEntity
-
- All Known Implementing Classes:
DefaultMapSubjectCredentialManagerEntity
public interface MapSubjectCredentialManagerEntity
Interface for credential management in entities in the map storage.- Author:
- Alexander Schwartz
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stream<String>
getDisableableCredentialTypesStream()
List the credential types that can be disabled for this user.boolean
isConfiguredFor(String type)
Check if the entity is configured for the given credential type.boolean
updateCredential(CredentialInput input)
Update the credentials for a user with the input provided by the user for this store.void
validateCredentials(List<CredentialInput> inputs)
Validate the credentials of a user.
-
-
-
Method Detail
-
validateCredentials
void validateCredentials(List<CredentialInput> inputs)
Validate the credentials of a user. Will remove all inputs from the list that have been successfully validated, all remaining entries weren't validated. An empty list signals to the caller that authentication has completed successfully.- Parameters:
inputs
- Credential inputs as provided by a user
-
updateCredential
boolean updateCredential(CredentialInput input)
Update the credentials for a user with the input provided by the user for this store.- Parameters:
input
- new credentials as provided by the user- Returns:
- true if the credential has been updated successfully, false otherwise. False might indicate that the credential type isn't supported of the new credentials aren't valid.
-
isConfiguredFor
boolean isConfiguredFor(String type)
Check if the entity is configured for the given credential type.- Parameters:
type
- credential type
-
-