Enum Class HTTPAuthenticationScheme

java.lang.Object
java.lang.Enum<HTTPAuthenticationScheme>
oracle.dbtools.plugin.api.http.annotations.HTTPAuthenticationScheme
All Implemented Interfaces:
Serializable, Comparable<HTTPAuthenticationScheme>, Constable

public enum HTTPAuthenticationScheme extends Enum<HTTPAuthenticationScheme>
Describes a specific Authentication Scheme. Ex: Authorization: Basic At the moment there are only two defined ANY and BASIC. But there are several standard Authentication Schemes including BEARER https://tools.ietf.org/html/rfc7235
Author:
dooneill
  • Enum Constant Details

  • Method Details

    • values

      public static HTTPAuthenticationScheme[] 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 HTTPAuthenticationScheme 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
    • value

      public static HTTPAuthenticationScheme value(String text)
      Determine the HTTPAuthenticationScheme for the specified textual representation
      Parameters:
      text - The textual representation of the HTTPAuthenticationScheme
      Returns:
      BASIC if the textual value equals (case insensitive) BASIC,null ANY