All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.elytron.security.jdbc.PrincipalQueryConfig Maven / Gradle / Ivy

There is a newer version: 3.17.0
Show newest version
package io.quarkus.elytron.security.jdbc;

import java.util.Map;
import java.util.Optional;

import io.quarkus.runtime.annotations.ConfigGroup;
import io.smallrye.config.WithName;

/**
 * Configuration information used to populate a {@linkplain org.wildfly.security.auth.realm.jdbc.QueryBuilder}
 */
@ConfigGroup
public interface PrincipalQueryConfig {

    /**
     * The sql query to find the password
     */
    Optional sql();

    /**
     * The data source to use
     */
    Optional datasource();

    /**
     * The definitions of the mapping between the database columns and the identity's attributes
     */
    Map attributeMappings();

    /**
     * The "clear-password-mapper" configuration
     */
    @WithName("clear-password-mapper")
    ClearPasswordMapperConfig clearPasswordMapperConfig();

    /**
     * The "bcrypt-password-mapper" configuration
     */
    @WithName("bcrypt-password-mapper")
    BcryptPasswordKeyMapperConfig bcryptPasswordKeyMapperConfig();

    String toString();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy