io.quarkus.security.runtime.SecurityBuildTimeConfig Maven / Gradle / Ivy
package io.quarkus.security.runtime;
import io.quarkus.runtime.annotations.ConfigPhase;
import io.quarkus.runtime.annotations.ConfigRoot;
import io.smallrye.config.ConfigMapping;
import io.smallrye.config.WithDefault;
import io.smallrye.config.WithName;
/**
* @author Michal Szynkiewicz, [email protected]
*/
@ConfigMapping(prefix = "quarkus.security")
@ConfigRoot(phase = ConfigPhase.BUILD_AND_RUN_TIME_FIXED)
public interface SecurityBuildTimeConfig {
/**
* If set to true, access to all methods of beans that have any security annotations on other members will be denied by
* default.
* E.g. if enabled, in the following bean, methodB
will be denied.
*
*
* @ApplicationScoped
* public class A {
* @RolesAllowed("admin")
* public void methodA() {
* ...
* }
* public void methodB() {
* ...
* }
* }
*
*/
@WithName("deny-unannotated-members")
@WithDefault("false")
boolean denyUnannotated();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy