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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList the credential types that can be disabled for this user.booleanisConfiguredFor(String type) Check if the entity is configured for the given credential type.booleanupdateCredential(CredentialInput input) Update the credentials for a user with the input provided by the user for this store.voidvalidateCredentials(List<CredentialInput> inputs) Validate the credentials of a user.
-
Constructor Details
-
DefaultMapSubjectCredentialManagerEntity
public DefaultMapSubjectCredentialManagerEntity()
-
-
Method Details
-
validateCredentials
Description copied from interface:MapSubjectCredentialManagerEntityValidate 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:
validateCredentialsin interfaceMapSubjectCredentialManagerEntity- Parameters:
inputs- Credential inputs as provided by a user
-
updateCredential
Description copied from interface:MapSubjectCredentialManagerEntityUpdate the credentials for a user with the input provided by the user for this store.- Specified by:
updateCredentialin 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:MapSubjectCredentialManagerEntityCheck if the entity is configured for the given credential type.- Specified by:
isConfiguredForin interfaceMapSubjectCredentialManagerEntity- Parameters:
type- credential type
-
getDisableableCredentialTypesStream
Description copied from interface:MapSubjectCredentialManagerEntityList the credential types that can be disabled for this user.- Specified by:
getDisableableCredentialTypesStreamin interfaceMapSubjectCredentialManagerEntity- Returns:
- Stream of credential types
-