## Uses of Class
org.keycloak.credential.CredentialModel

- Packages that use CredentialModel
  Package | Description
  --- | ---
  org.keycloak.authentication |
  org.keycloak.credential |
  org.keycloak.credential.hash |
  org.keycloak.exportimport.util |
  org.keycloak.forms.account.freemarker.model |
  org.keycloak.forms.login.freemarker.model |
  org.keycloak.models |
  org.keycloak.models.credential |
  org.keycloak.models.jpa |
  org.keycloak.models.map.user |
  org.keycloak.models.utils |
  org.keycloak.storage.federated |
  org.keycloak.storage.jpa |

- - ### Uses of CredentialModel in org.keycloak.authentication

    Methods in org.keycloak.authentication that return types with arguments of type CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `default List<CredentialModel>` | CredentialValidator.`getCredentials(KeycloakSession session, RealmModel realm, UserModel user)`

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

    Classes in org.keycloak.credential with type parameters of type CredentialModel
    Modifier and Type | Interface and Description
    --- | ---
    `interface` | `CredentialProvider<T extends CredentialModel>`

    Methods in org.keycloak.credential that return CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `CredentialModel` | UserCredentialStore.`createCredential(RealmModel realm, UserModel user, CredentialModel cred)`
    `CredentialModel` | UserCredentialStoreManager.`createCredential(RealmModel realm, UserModel user, CredentialModel cred)`
    `CredentialModel` | OTPCredentialProvider.`createCredential(RealmModel realm, UserModel user, OTPCredentialModel credentialModel)`
    `CredentialModel` | PasswordCredentialProvider.`createCredential(RealmModel realm, UserModel user, PasswordCredentialModel credentialModel)`
    `CredentialModel` | CredentialProvider.`createCredential(RealmModel realm, UserModel user, T credentialModel)`
    `CredentialModel` | WebAuthnCredentialProvider.`createCredential(RealmModel realm, UserModel user, WebAuthnCredentialModel credentialModel)`
    `CredentialModel` | UserCredentialStoreManager.`createCredentialThroughProvider(RealmModel realm, UserModel user, CredentialModel model)`
    `CredentialModel` | UserCredentialStore.`getStoredCredentialById(RealmModel realm, UserModel user, String id)`
    `CredentialModel` | UserCredentialStoreManager.`getStoredCredentialById(RealmModel realm, UserModel user, String id)`
    `CredentialModel` | UserCredentialStore.`getStoredCredentialByNameAndType(RealmModel realm, UserModel user, String name, String type)`
    `CredentialModel` | UserCredentialStoreManager.`getStoredCredentialByNameAndType(RealmModel realm, UserModel user, String name, String type)`
    `CredentialModel` | CredentialModel.`shallowClone()`

    Methods in org.keycloak.credential that return types with arguments of type CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `static Comparator<CredentialModel>` | CredentialModel.`comparingByStartDateDesc()`
    `List<CredentialModel>` | UserCredentialStore.`getStoredCredentials(RealmModel realm, UserModel user)` Deprecated. Use `getStoredCredentialsStream` instead.
    `default List<CredentialModel>` | UserCredentialStore.Streams.`getStoredCredentials(RealmModel realm, UserModel user)`
    `List<CredentialModel>` | UserCredentialStore.`getStoredCredentialsByType(RealmModel realm, UserModel user, String type)` Deprecated. Use `getStoredCredentialsByTypeStream` instead.
    `default List<CredentialModel>` | UserCredentialStore.Streams.`getStoredCredentialsByType(RealmModel realm, UserModel user, String type)`
    `default Stream<CredentialModel>` | UserCredentialStore.`getStoredCredentialsByTypeStream(RealmModel realm, UserModel user, String type)` Obtains the stored credentials associated with the specified user that match the specified type.
    `Stream<CredentialModel>` | UserCredentialStore.Streams.`getStoredCredentialsByTypeStream(RealmModel realm, UserModel user, String type)`
    `Stream<CredentialModel>` | UserCredentialStoreManager.`getStoredCredentialsByTypeStream(RealmModel realm, UserModel user, String type)`
    `default Stream<CredentialModel>` | UserCredentialStore.`getStoredCredentialsStream(RealmModel realm, UserModel user)` Obtains the stored credentials associated with the specified user.
    `Stream<CredentialModel>` | UserCredentialStore.Streams.`getStoredCredentialsStream(RealmModel realm, UserModel user)`
    `Stream<CredentialModel>` | UserCredentialStoreManager.`getStoredCredentialsStream(RealmModel realm, UserModel user)`

    Methods in org.keycloak.credential with parameters of type CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `CredentialModel` | UserCredentialStore.`createCredential(RealmModel realm, UserModel user, CredentialModel cred)`
    `CredentialModel` | UserCredentialStoreManager.`createCredential(RealmModel realm, UserModel user, CredentialModel cred)`
    `CredentialModel` | UserCredentialStoreManager.`createCredentialThroughProvider(RealmModel realm, UserModel user, CredentialModel model)`
    `T` | CredentialProvider.`getCredentialFromModel(CredentialModel model)`
    `WebAuthnCredentialModel` | WebAuthnCredentialProvider.`getCredentialFromModel(CredentialModel model)`
    `PasswordCredentialModel` | PasswordCredentialProvider.`getCredentialFromModel(CredentialModel model)`
    `OTPCredentialModel` | OTPCredentialProvider.`getCredentialFromModel(CredentialModel model)`
    `void` | UserCredentialStore.`updateCredential(RealmModel realm, UserModel user, CredentialModel cred)`
    `void` | UserCredentialStoreManager.`updateCredential(RealmModel realm, UserModel user, CredentialModel cred)`

  - ### Uses of CredentialModel in org.keycloak.credential.hash

    Methods in org.keycloak.credential.hash with parameters of type CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `default void` | PasswordHashProvider.`encode(String rawPassword, int iterations, CredentialModel credential)` Deprecated. Exists due the backwards compatibility. It is recommended to use `PasswordHashProvider.encodedCredential(String, int)`}
    `default boolean` | PasswordHashProvider.`policyCheck(PasswordPolicy policy, CredentialModel credential)` Deprecated. Exists due the backwards compatibility. It is recommended to use `PasswordHashProvider.policyCheck(PasswordPolicy, PasswordCredentialModel)`
    `default boolean` | PasswordHashProvider.`verify(String rawPassword, CredentialModel credential)` Deprecated. Exists due the backwards compatibility. It is recommended to use `PasswordHashProvider.verify(String, PasswordCredentialModel)`

  - ### Uses of CredentialModel in org.keycloak.exportimport.util

    Methods in org.keycloak.exportimport.util with parameters of type CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `static CredentialRepresentation` | ExportUtils.`exportCredential(CredentialModel userCred)`

  - ### Uses of CredentialModel in org.keycloak.forms.account.freemarker.model

    Methods in org.keycloak.forms.account.freemarker.model that return types with arguments of type CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `List<CredentialModel>` | TotpBean.`getOtpCredentials()`

  - ### Uses of CredentialModel in org.keycloak.forms.login.freemarker.model

    Methods in org.keycloak.forms.login.freemarker.model that return types with arguments of type CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `List<CredentialModel>` | TotpBean.`getOtpCredentials()`

    Constructors in org.keycloak.forms.login.freemarker.model with parameters of type CredentialModel
    Constructor and Description
    `OTPCredential(CredentialModel credentialModel)`

  - ### Uses of CredentialModel in org.keycloak.models

    Methods in org.keycloak.models that return CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `CredentialModel` | UserCredentialManager.`createCredentialThroughProvider(RealmModel realm, UserModel user, CredentialModel model)` Creates a credential from the credentialModel, by looping through the providers to find a match for the type

    Methods in org.keycloak.models with parameters of type CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `CredentialModel` | UserCredentialManager.`createCredentialThroughProvider(RealmModel realm, UserModel user, CredentialModel model)` Creates a credential from the credentialModel, by looping through the providers to find a match for the type

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

    Subclasses of CredentialModel in org.keycloak.models.credential
    Modifier and Type | Class and Description
    --- | ---
    `class` | `OTPCredentialModel`
    `class` | `PasswordCredentialModel`
    `class` | `WebAuthnCredentialModel`

    Methods in org.keycloak.models.credential with parameters of type CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `static WebAuthnCredentialModel` | WebAuthnCredentialModel.`createFromCredentialModel(CredentialModel credentialModel)`
    `static PasswordCredentialModel` | PasswordCredentialModel.`createFromCredentialModel(CredentialModel credentialModel)`
    `static OTPCredentialModel` | OTPCredentialModel.`createFromCredentialModel(CredentialModel credentialModel)`

  - ### Uses of CredentialModel in org.keycloak.models.jpa

    Methods in org.keycloak.models.jpa that return CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `CredentialModel` | JpaUserProvider.`createCredential(RealmModel realm, UserModel user, CredentialModel cred)`
    `CredentialModel` | JpaUserCredentialStore.`createCredential(RealmModel realm, UserModel user, CredentialModel cred)`
    `CredentialModel` | JpaUserProvider.`getStoredCredentialById(RealmModel realm, UserModel user, String id)`
    `CredentialModel` | JpaUserCredentialStore.`getStoredCredentialById(RealmModel realm, UserModel user, String id)`
    `CredentialModel` | JpaUserProvider.`getStoredCredentialByNameAndType(RealmModel realm, UserModel user, String name, String type)`
    `CredentialModel` | JpaUserCredentialStore.`getStoredCredentialByNameAndType(RealmModel realm, UserModel user, String name, String type)`
    `protected CredentialModel` | JpaUserProvider.`toModel(CredentialEntity entity)`

    Methods in org.keycloak.models.jpa that return types with arguments of type CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<CredentialModel>` | JpaUserProvider.`getStoredCredentialsByTypeStream(RealmModel realm, UserModel user, String type)`
    `Stream<CredentialModel>` | JpaUserCredentialStore.`getStoredCredentialsByTypeStream(RealmModel realm, UserModel user, String type)`
    `Stream<CredentialModel>` | JpaUserProvider.`getStoredCredentialsStream(RealmModel realm, UserModel user)`
    `Stream<CredentialModel>` | JpaUserCredentialStore.`getStoredCredentialsStream(RealmModel realm, UserModel user)`

    Methods in org.keycloak.models.jpa with parameters of type CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `CredentialModel` | JpaUserProvider.`createCredential(RealmModel realm, UserModel user, CredentialModel cred)`
    `CredentialModel` | JpaUserCredentialStore.`createCredential(RealmModel realm, UserModel user, CredentialModel cred)`
    `void` | JpaUserProvider.`updateCredential(RealmModel realm, UserModel user, CredentialModel cred)`
    `void` | JpaUserCredentialStore.`updateCredential(RealmModel realm, UserModel user, CredentialModel cred)`

  - ### Uses of CredentialModel in org.keycloak.models.map.user

    Methods in org.keycloak.models.map.user that return CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `CredentialModel` | MapUserProvider.`createCredential(RealmModel realm, UserModel user, CredentialModel cred)`
    `CredentialModel` | MapUserProvider.`getStoredCredentialById(RealmModel realm, UserModel user, String id)`
    `CredentialModel` | MapUserProvider.`getStoredCredentialByNameAndType(RealmModel realm, UserModel user, String name, String type)`
    `static CredentialModel` | UserCredentialEntity.`toModel(UserCredentialEntity entity)`

    Methods in org.keycloak.models.map.user that return types with arguments of type CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<CredentialModel>` | MapUserProvider.`getStoredCredentialsByTypeStream(RealmModel realm, UserModel user, String type)`
    `Stream<CredentialModel>` | MapUserProvider.`getStoredCredentialsStream(RealmModel realm, UserModel user)`

    Methods in org.keycloak.models.map.user with parameters of type CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `CredentialModel` | MapUserProvider.`createCredential(RealmModel realm, UserModel user, CredentialModel cred)`
    `static UserCredentialEntity` | UserCredentialEntity.`fromModel(CredentialModel model)`
    `void` | MapUserProvider.`updateCredential(RealmModel realm, UserModel user, CredentialModel cred)`

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

    Methods in org.keycloak.models.utils that return CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `static CredentialModel` | RepresentationToModel.`toModel(CredentialRepresentation cred)`

    Methods in org.keycloak.models.utils with parameters of type CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `static CredentialRepresentation` | ModelToRepresentation.`toRepresentation(CredentialModel cred)`

  - ### Uses of CredentialModel in org.keycloak.storage.federated

    Methods in org.keycloak.storage.federated that return CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `CredentialModel` | UserFederatedUserCredentialStore.`createCredential(RealmModel realm, String userId, CredentialModel cred)`
    `CredentialModel` | UserFederatedUserCredentialStore.`getStoredCredentialById(RealmModel realm, String userId, String id)`
    `CredentialModel` | UserFederatedUserCredentialStore.`getStoredCredentialByNameAndType(RealmModel realm, String userId, String name, String type)`

    Methods in org.keycloak.storage.federated that return types with arguments of type CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `List<CredentialModel>` | UserFederatedUserCredentialStore.`getStoredCredentials(RealmModel realm, String userId)` Deprecated. Use `getStoredCredentialsStream` instead.
    `default List<CredentialModel>` | UserFederatedUserCredentialStore.Streams.`getStoredCredentials(RealmModel realm, String userId)`
    `List<CredentialModel>` | UserFederatedUserCredentialStore.`getStoredCredentialsByType(RealmModel realm, String userId, String type)` Deprecated. Use `getStoredCredentialsByTypeStream` instead.
    `default List<CredentialModel>` | UserFederatedUserCredentialStore.Streams.`getStoredCredentialsByType(RealmModel realm, String userId, String type)`
    `default Stream<CredentialModel>` | UserFederatedUserCredentialStore.`getStoredCredentialsByTypeStream(RealmModel realm, String userId, String type)` Obtains the credentials of type `type` that are associated with the federated user identified by `userId`.
    `Stream<CredentialModel>` | UserFederatedUserCredentialStore.Streams.`getStoredCredentialsByTypeStream(RealmModel realm, String userId, String type)`
    `default Stream<CredentialModel>` | UserFederatedUserCredentialStore.`getStoredCredentialsStream(RealmModel realm, String userId)` Obtains the credentials associated with the federated user identified by `userId`.
    `Stream<CredentialModel>` | UserFederatedUserCredentialStore.Streams.`getStoredCredentialsStream(RealmModel realm, String userId)`

    Methods in org.keycloak.storage.federated with parameters of type CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `CredentialModel` | UserFederatedUserCredentialStore.`createCredential(RealmModel realm, String userId, CredentialModel cred)`
    `void` | UserFederatedUserCredentialStore.`updateCredential(RealmModel realm, String userId, CredentialModel cred)`

  - ### Uses of CredentialModel in org.keycloak.storage.jpa

    Methods in org.keycloak.storage.jpa that return CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `CredentialModel` | JpaUserFederatedStorageProvider.`createCredential(RealmModel realm, String userId, CredentialModel cred)`
    `CredentialModel` | JpaUserFederatedStorageProvider.`createCredential(RealmModel realm, UserModel user, CredentialModel cred)`
    `CredentialModel` | JpaUserFederatedStorageProvider.`getStoredCredentialById(RealmModel realm, String userId, String id)`
    `CredentialModel` | JpaUserFederatedStorageProvider.`getStoredCredentialById(RealmModel realm, UserModel user, String id)`
    `CredentialModel` | JpaUserFederatedStorageProvider.`getStoredCredentialByNameAndType(RealmModel realm, String userId, String name, String type)`
    `CredentialModel` | JpaUserFederatedStorageProvider.`getStoredCredentialByNameAndType(RealmModel realm, UserModel user, String name, String type)`
    `protected CredentialModel` | JpaUserFederatedStorageProvider.`toModel(FederatedUserCredentialEntity entity)`

    Methods in org.keycloak.storage.jpa that return types with arguments of type CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `Stream<CredentialModel>` | JpaUserFederatedStorageProvider.`getStoredCredentialsByTypeStream(RealmModel realm, String userId, String type)`
    `Stream<CredentialModel>` | JpaUserFederatedStorageProvider.`getStoredCredentialsByTypeStream(RealmModel realm, UserModel user, String type)`
    `Stream<CredentialModel>` | JpaUserFederatedStorageProvider.`getStoredCredentialsStream(RealmModel realm, String userId)`
    `Stream<CredentialModel>` | JpaUserFederatedStorageProvider.`getStoredCredentialsStream(RealmModel realm, UserModel user)`

    Methods in org.keycloak.storage.jpa with parameters of type CredentialModel
    Modifier and Type | Method and Description
    --- | ---
    `CredentialModel` | JpaUserFederatedStorageProvider.`createCredential(RealmModel realm, String userId, CredentialModel cred)`
    `CredentialModel` | JpaUserFederatedStorageProvider.`createCredential(RealmModel realm, UserModel user, CredentialModel cred)`
    `void` | JpaUserFederatedStorageProvider.`updateCredential(RealmModel realm, String userId, CredentialModel cred)`
    `void` | JpaUserFederatedStorageProvider.`updateCredential(RealmModel realm, UserModel user, CredentialModel cred)`

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