Uses of Class
org.keycloak.models.credential.OTPCredentialModel
Package
Description
-
Uses of OTPCredentialModel in org.keycloak.authentication.requiredactions
Modifier and TypeMethodDescriptionprotected boolean
UpdateTotp.validateOTPCredential
(RequiredActionContext context, String token, OTPCredentialModel credentialModel, OTPPolicy policy) -
Uses of OTPCredentialModel in org.keycloak.credential
Modifier and TypeMethodDescriptionOTPCredentialProvider.getCredentialFromModel
(CredentialModel model) Modifier and TypeMethodDescriptionOTPCredentialProvider.createCredential
(RealmModel realm, UserModel user, OTPCredentialModel credentialModel) -
Uses of OTPCredentialModel in org.keycloak.models.credential
Modifier and TypeMethodDescriptionstatic OTPCredentialModel
OTPCredentialModel.createFromCredentialModel
(CredentialModel credentialModel) static OTPCredentialModel
OTPCredentialModel.createFromPolicy
(RealmModel realm, String secretValue) static OTPCredentialModel
OTPCredentialModel.createFromPolicy
(RealmModel realm, String secretValue, String userLabel) static OTPCredentialModel
OTPCredentialModel.createHOTP
(String secretValue, int digits, int counter, String algorithm) static OTPCredentialModel
OTPCredentialModel.createTOTP
(String secretValue, int digits, int period, String algorithm) static OTPCredentialModel
OTPCredentialModel.createTOTP
(String secretValue, int digits, int period, String algorithm, String encoding) -
Uses of OTPCredentialModel in org.keycloak.models.utils
Modifier and TypeMethodDescriptionstatic boolean
CredentialValidation.validOTP
(String token, OTPCredentialModel credentialModel, int lookAheadWindow) -
Uses of OTPCredentialModel in org.keycloak.utils
Modifier and TypeMethodDescriptionstatic boolean
CredentialHelper.createOTPCredential
(KeycloakSession session, RealmModel realm, UserModel user, String totpCode, OTPCredentialModel credentialModel) Create OTP credential either in userStorage or local storage (Keycloak DB)