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 aMapSubjectCredentialManagerEntitywhere the store doesn't provide validation of credentials.- Author:
- Alexander Schwartz
 
- 
- 
Constructor SummaryConstructors Constructor Description DefaultMapSubjectCredentialManagerEntity()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Stream<String>getDisableableCredentialTypesStream()List 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.
 
- 
- 
- 
Method Detail- 
validateCredentialspublic void validateCredentials(List<CredentialInput> inputs) 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 interface- MapSubjectCredentialManagerEntity
- Parameters:
- inputs- Credential inputs as provided by a user
 
 - 
updateCredentialpublic boolean updateCredential(CredentialInput input) Description copied from interface:MapSubjectCredentialManagerEntityUpdate the credentials for a user with the input provided by the user for this store.- Specified by:
- updateCredentialin interface- MapSubjectCredentialManagerEntity
- 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.
 
 - 
isConfiguredForpublic boolean isConfiguredFor(String type) Description copied from interface:MapSubjectCredentialManagerEntityCheck if the entity is configured for the given credential type.- Specified by:
- isConfiguredForin interface- MapSubjectCredentialManagerEntity
- Parameters:
- type- credential type
 
 - 
getDisableableCredentialTypesStreampublic Stream<String> getDisableableCredentialTypesStream() Description copied from interface:MapSubjectCredentialManagerEntityList the credential types that can be disabled for this user.- Specified by:
- getDisableableCredentialTypesStreamin interface- MapSubjectCredentialManagerEntity
- Returns:
- Stream of credential types
 
 
- 
 
-