Interface GuardrailsConfigProvider

    • Field Detail

      • CUSTOM_IMPLEMENTATION_PROPERTY

        @Deprecated(since="5.0")
        static final java.lang.String CUSTOM_IMPLEMENTATION_PROPERTY
        Deprecated.
        CUSTOM_GUARDRAILS_CONFIG_PROVIDER_CLASS.getKey() must be used instead. See CASSANDRA-17797
    • Method Detail

      • getOrCreate

        GuardrailsConfig getOrCreate​(@Nullable
                                     ClientState state)
        Returns the GuardrailsConfig to be used for the specified ClientState.
        Parameters:
        state - a client state, maybe null if the guardrails check for which we are getting the config is for a background process that is not associated to a user query.
        Returns:
        the configuration to be used for state
      • build

        static GuardrailsConfigProvider build​(java.lang.String customImpl)
        Creates an instance of the custom guardrails config provider of the given class.
        Parameters:
        customImpl - the fully qualified classname of the guardrails config provider to be instantiated
        Returns:
        a new instance of the specified custom guardrails config provider of the given class.