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 aMapSubjectCredentialManagerEntity
where the store doesn't provide validation of credentials.- Author:
- Alexander Schwartz
-
-
Constructor Summary
Constructors Constructor Description DefaultMapSubjectCredentialManagerEntity()
-
Method Summary
All Methods Instance Methods Concrete 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
public void validateCredentials(List<CredentialInput> inputs)
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
public boolean updateCredential(CredentialInput input)
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
public boolean isConfiguredFor(String type)
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
public Stream<String> 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
-
-