Package org.keycloak.credential
Interface CredentialInputValidator
- All Known Implementing Classes:
KerberosFederationProvider
,LDAPStorageProvider
,OTPCredentialProvider
,PasswordCredentialProvider
,RecoveryAuthnCodesCredentialProvider
,SSSDFederationProvider
,WebAuthnCredentialProvider
,WebAuthnPasswordlessCredentialProvider
public interface CredentialInputValidator
Implentations 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 Summary
Modifier and TypeMethodDescriptionboolean
isConfiguredFor
(RealmModel realm, UserModel user, String credentialType) boolean
isValid
(RealmModel realm, UserModel user, CredentialInput credentialInput) Tests whether a credential is validboolean
supportsCredentialType
(String credentialType)
-
Method Details
-
supportsCredentialType
-
isConfiguredFor
-
isValid
Tests whether a credential is valid- Parameters:
realm
- The realm in which to which the credential belongs touser
- The user for which to test the credentialcredentialInput
- the credential details to verify- Returns:
- true if the passed secret is correct
-