Enum EnforcementMode

  • All Implemented Interfaces:
    Serializable, Comparable<EnforcementMode>

    public enum EnforcementMode
    extends Enum<EnforcementMode>
    RBAC ServiceRoleBinding enforcement mode, used to verify new ServiceRoleBinding configs work as expected before rolling to production. RBAC engine only logs results from configs that are in permissive mode, and discards result before returning to the user.
    Author:
    Christophe Laprun
    • Enum Constant Detail

      • ENFORCED

        public static final EnforcementMode ENFORCED
        Policy in ENFORCED mode has impact on user experience. Policy is in ENFORCED mode by default.
      • PERMISSIVE

        public static final EnforcementMode PERMISSIVE
        Policy in PERMISSIVE mode isn't enforced and has no impact on users. RBAC engine run policies in PERMISSIVE mode and logs stats.
    • Method Detail

      • values

        public static EnforcementMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EnforcementMode c : EnforcementMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EnforcementMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public int value()