Package io.quarkus.security.spi
Class RolesAllowedConfigExpResolverBuildItem
- java.lang.Object
-
- io.quarkus.builder.item.BuildItem
-
- io.quarkus.builder.item.MultiBuildItem
-
- io.quarkus.security.spi.RolesAllowedConfigExpResolverBuildItem
-
public final class RolesAllowedConfigExpResolverBuildItem extends io.quarkus.builder.item.MultiBuildItemProvides a way to transform roles allowed specified as configuration expressions in annotations to runtime configuration values.
-
-
Constructor Summary
Constructors Constructor Description RolesAllowedConfigExpResolverBuildItem(String roleConfigExpr, BiConsumer<String,Supplier<String[]>> configValueRecorder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BiConsumer<String,Supplier<String[]>>getConfigValueRecorder()StringgetRoleConfigExpr()static booleanisSecurityConfigExpressionCandidate(String configExpression)
-
-
-
Constructor Detail
-
RolesAllowedConfigExpResolverBuildItem
public RolesAllowedConfigExpResolverBuildItem(String roleConfigExpr, BiConsumer<String,Supplier<String[]>> configValueRecorder)
- Parameters:
roleConfigExpr- roles allowed configuration expressionconfigValueRecorder- roles allowed supplier will be recorded to this consumer created during static-init; runtime roles allowed expressions are supplied correctly only when runtime config is ready
-
-