## Uses of Class
org.keycloak.models.credential.OTPCredentialModel

- Packages that use OTPCredentialModel
  Package | Description
  --- | ---
  org.keycloak.authentication.requiredactions |
  org.keycloak.credential |
  org.keycloak.models.credential |
  org.keycloak.models.utils |
  org.keycloak.utils |

- - ### Uses of OTPCredentialModel in org.keycloak.authentication.requiredactions

    Methods in org.keycloak.authentication.requiredactions with parameters of type OTPCredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `protected boolean` | UpdateTotp.`validateOTPCredential(RequiredActionContext context, String token, OTPCredentialModel credentialModel, OTPPolicy policy)`

  - ### Uses of OTPCredentialModel in org.keycloak.credential

    Methods in org.keycloak.credential that return OTPCredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `OTPCredentialModel` | OTPCredentialProvider.`getCredentialFromModel(CredentialModel model)`

    Methods in org.keycloak.credential with parameters of type OTPCredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `CredentialModel` | OTPCredentialProvider.`createCredential(RealmModel realm, UserModel user, OTPCredentialModel credentialModel)`

  - ### Uses of OTPCredentialModel in org.keycloak.models.credential

    Methods in org.keycloak.models.credential that return OTPCredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `static 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)`

  - ### Uses of OTPCredentialModel in org.keycloak.models.utils

    Methods in org.keycloak.models.utils with parameters of type OTPCredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | CredentialValidation.`validOTP(String token, OTPCredentialModel credentialModel, int lookAheadWindow)`

  - ### Uses of OTPCredentialModel in org.keycloak.utils

    Methods in org.keycloak.utils with parameters of type OTPCredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | CredentialHelper.`createOTPCredential(KeycloakSession session, RealmModel realm, UserModel user, String totpCode, OTPCredentialModel credentialModel)` Create OTP credential either in userStorage or local storage (Keycloak DB)

Copyright © 2021 JBoss by Red Hat. All rights reserved.