Enum SaslMechanisms

    • Method Detail

      • values

        public static SaslMechanisms[] 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 (SaslMechanisms c : SaslMechanisms.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SaslMechanisms 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
      • createMechanism

        public abstract Mechanism createMechanism()
        Creates the object that implements the SASL Mechanism represented by this enumeration.
        Returns:
        a new SASL Mechanism type that will be used for authentication.
      • valueOf

        public static SaslMechanisms valueOf​(Symbol mechanism)
        Returns the matching SaslMechanisms enumeration value for the given Symbol key.
        Parameters:
        mechanism - The symbolic mechanism name to lookup.
        Returns:
        the matching SaslMechanisms for the given Symbol value.
      • validate

        public static boolean validate​(String mechanism)
        Given a mechanism name, validate that it is one of the mechanisms this client supports.
        Parameters:
        mechanism - The mechanism name to validate
        Returns:
        true if the name matches a supported SASL Mechanism