Factory implementing Argon2-based password hashing for Keycloak credential storage, including config options for type, version, and concurrency control. Reuse when adding or customizing secure password hashing algorithms.
// Source: https://github.com/keycloak/keycloak | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works // Provided via justclaw.it.com; keep this notice with the code. package org.keycloak.crypto.hash; import java.util.LinkedList; import java.util.List; import java.util.concurrent.Semaphore; import org.keycloak.Config; import org.keycloak.common.Profile; import org.keycloak.credential.hash.PasswordHashProvider; import org.keycloak.credential.hash.PasswordHashProviderFactory; import org.keycloak.models.KeycloakSession; import org.keycloak.models.KeycloakSessionFactory; import org.keycloak.provider.EnvironmentDependentProviderFactory; import org.keycloak.provider.ProviderConfigProperty; import org.keycloak.provider.ProviderConfigurationBuilder; impor ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key