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

io.quarkus.security.deployment.SecurityConfig Maven / Gradle / Ivy

The newest version!
package io.quarkus.security.deployment;

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

import io.quarkus.runtime.annotations.ConfigDocMapKey;
import io.quarkus.runtime.annotations.ConfigRoot;
import io.smallrye.config.ConfigMapping;
import io.smallrye.config.WithDefault;
import io.smallrye.config.WithName;

/**
 *
 */
@ConfigMapping(prefix = "quarkus.security")
@ConfigRoot
public interface SecurityConfig {

    /**
     * Whether authorization is enabled in dev mode or not. In other launch modes authorization is always enabled.
     */
    @WithName("auth.enabled-in-dev-mode")
    @WithDefault("true")
    boolean authorizationEnabledInDevMode();

    /**
     * List of security providers to register
     */
    Optional> securityProviders();

    /**
     * Security provider configuration
     */
    @ConfigDocMapKey("provider-name")
    Map securityProviderConfig();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy