Class RolesAllowedConfigExpResolverBuildItem


  • public final class RolesAllowedConfigExpResolverBuildItem
    extends io.quarkus.builder.item.MultiBuildItem
    Provides a way to transform roles allowed specified as configuration expressions in annotations to runtime configuration values.
    • Constructor Detail

      • RolesAllowedConfigExpResolverBuildItem

        public RolesAllowedConfigExpResolverBuildItem​(String roleConfigExpr,
                                                      BiConsumer<String,​Supplier<String[]>> configValueRecorder)
        Parameters:
        roleConfigExpr - roles allowed configuration expression
        configValueRecorder - 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
    • Method Detail

      • getRoleConfigExpr

        public String getRoleConfigExpr()
      • isSecurityConfigExpressionCandidate

        public static boolean isSecurityConfigExpressionCandidate​(String configExpression)