Class DefaultMapSubjectCredentialManagerEntity
java.lang.Object
org.keycloak.models.map.credential.DefaultMapSubjectCredentialManagerEntity
- All Implemented Interfaces:
MapSubjectCredentialManagerEntity
public class DefaultMapSubjectCredentialManagerEntity
extends Object
implements MapSubjectCredentialManagerEntity
Standard implementation for a
MapSubjectCredentialManagerEntity
where the store doesn't provide
validation of credentials.- Author:
- Alexander Schwartz
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionList 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.
-
Constructor Details
-
DefaultMapSubjectCredentialManagerEntity
public DefaultMapSubjectCredentialManagerEntity()
-
-
Method Details
-
validateCredentials
Description copied from interface:MapSubjectCredentialManagerEntity
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.- Specified by:
validateCredentials
in interfaceMapSubjectCredentialManagerEntity
- Parameters:
inputs
- Credential inputs as provided by a user
-
updateCredential
Description copied from interface:MapSubjectCredentialManagerEntity
Update the credentials for a user with the input provided by the user for this store.- Specified by:
updateCredential
in interfaceMapSubjectCredentialManagerEntity
- 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
Description copied from interface:MapSubjectCredentialManagerEntity
Check if the entity is configured for the given credential type.- Specified by:
isConfiguredFor
in interfaceMapSubjectCredentialManagerEntity
- Parameters:
type
- credential type
-
getDisableableCredentialTypesStream
Description copied from interface:MapSubjectCredentialManagerEntity
List the credential types that can be disabled for this user.- Specified by:
getDisableableCredentialTypesStream
in interfaceMapSubjectCredentialManagerEntity
- Returns:
- Stream of credential types
-