Enum Class SubscriptionAuthMode

java.lang.Object
java.lang.Enum<SubscriptionAuthMode>
org.apache.pulsar.common.policies.data.SubscriptionAuthMode
All Implemented Interfaces:
Serializable, Comparable<SubscriptionAuthMode>, Constable

public enum SubscriptionAuthMode extends Enum<SubscriptionAuthMode>
Subscription authorization for Pulsar policies.
  • Enum Constant Details

    • None

      public static final SubscriptionAuthMode None
      Every subscription name can be used by every role.
    • Prefix

      public static final SubscriptionAuthMode Prefix
      Subscription name with auth role prefix can be used by the role.
  • Method Details

    • values

      public static SubscriptionAuthMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SubscriptionAuthMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null