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

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

There is a newer version: 3.17.0.CR1
Show newest version
package io.quarkus.security.deployment;

import org.jboss.jandex.MethodInfo;

import io.quarkus.builder.item.MultiBuildItem;
import io.quarkus.security.spi.runtime.SecurityCheck;

/**
 * Used as an integration point when extensions need to customize the security behavior of a bean
 * The ResultHandle that is returned by function needs to be an instance of SecurityCheck
 */
public final class AdditionalSecurityCheckBuildItem extends MultiBuildItem {

    private final MethodInfo methodInfo;
    private final SecurityCheck securityCheck;

    public AdditionalSecurityCheckBuildItem(MethodInfo methodInfo, SecurityCheck securityCheck) {
        this.methodInfo = methodInfo;
        this.securityCheck = securityCheck;
    }

    public MethodInfo getMethodInfo() {
        return methodInfo;
    }

    public SecurityCheck getSecurityCheck() {
        return securityCheck;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy