Package org.keycloak.credential
Interface CredentialInputValidator
- 
- All Known Implementing Classes:
- KerberosFederationProvider,- LDAPStorageProvider,- OTPCredentialProvider,- PasswordCredentialProvider,- RecoveryAuthnCodesCredentialProvider,- SSSDFederationProvider,- WebAuthnCredentialProvider,- WebAuthnPasswordlessCredentialProvider
 
 public interface CredentialInputValidatorImplentations of this interface can validate CredentialInput, i.e. verify a password. UserStorageProviders and CredentialProviders can implement this interface.- Version:
- $Revision: 1 $
- Author:
- Bill Burke
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisConfiguredFor(RealmModel realm, UserModel user, String credentialType)booleanisValid(RealmModel realm, UserModel user, CredentialInput credentialInput)Tests whether a credential is validbooleansupportsCredentialType(String credentialType)
 
- 
- 
- 
Method Detail- 
supportsCredentialTypeboolean supportsCredentialType(String credentialType) 
 - 
isConfiguredForboolean isConfiguredFor(RealmModel realm, UserModel user, String credentialType) 
 - 
isValidboolean isValid(RealmModel realm, UserModel user, CredentialInput credentialInput) Tests whether a credential is valid- Parameters:
- realm- The realm in which to which the credential belongs to
- user- The user for which to test the credential
- credentialInput- the credential details to verify
- Returns:
- true if the passed secret is correct
 
 
- 
 
-