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

io.quarkus.elytron.security.ldap.config.DirContextConfig Maven / Gradle / Ivy

The newest version!
package io.quarkus.elytron.security.ldap.config;

import java.time.Duration;
import java.util.Optional;

import org.wildfly.security.auth.realm.ldap.DirContextFactory;

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

@ConfigGroup
public interface DirContextConfig {

    /**
     * The url of the ldap server
     */
    String url();

    /**
     * The principal: user which is used to connect to ldap server (also named "bindDn")
     */
    Optional principal();

    /**
     * The password which belongs to the principal (also named "bindCredential")
     */
    Optional password();

    /**
     * how ldap redirects are handled
     */
    @WithDefault("ignore")
    DirContextFactory.ReferralMode referralMode();

    /**
     * The connect timeout
     */
    @WithDefault("5s")
    Duration connectTimeout();

    /**
     * The read timeout
     */
    @WithDefault("60s")
    Duration readTimeout();

    String toString();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy