Package io.quarkus.security.spi
Class AdditionalSecurityAnnotationBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.security.spi.AdditionalSecurityAnnotationBuildItem
public final class AdditionalSecurityAnnotationBuildItem
extends io.quarkus.builder.item.MultiBuildItem
Allows integrating extensions to signal they provide their own security annotation.
Standard security annotations cannot be combined and when two different annotations are applied,
one on the class level and second on the method level, the method level must win.
Without this build item, the Quarkus Security extension won't know about your security annotation integration.
Please beware that integrating extension-specific security annotation is responsibility of that extension.
This build item is intended for very specialized Quarkus core use cases, like integration of the authorization
policy in the Vert.x HTTP extension.
-
Constructor Summary
ConstructorsConstructorDescriptionAdditionalSecurityAnnotationBuildItem(org.jboss.jandex.DotName securityAnnotationName) AdditionalSecurityAnnotationBuildItem(org.jboss.jandex.DotName securityAnnotationName, SecurityTransformer.AuthorizationType authorizationType) -
Method Summary
Modifier and TypeMethodDescriptionorg.jboss.jandex.DotName
-
Constructor Details
-
AdditionalSecurityAnnotationBuildItem
public AdditionalSecurityAnnotationBuildItem(org.jboss.jandex.DotName securityAnnotationName) -
AdditionalSecurityAnnotationBuildItem
public AdditionalSecurityAnnotationBuildItem(org.jboss.jandex.DotName securityAnnotationName, SecurityTransformer.AuthorizationType authorizationType)
-
-
Method Details
-
getSecurityAnnotationName
public org.jboss.jandex.DotName getSecurityAnnotationName() -
getAuthorizationType
-