Enum Class ScramClient.ChannelBinding

java.lang.Object
java.lang.Enum<ScramClient.ChannelBinding>
com.ongres.scram.client.ScramClient.ChannelBinding
All Implemented Interfaces:
Serializable, Comparable<ScramClient.ChannelBinding>, Constable
Enclosing class:
ScramClient

public static enum ScramClient.ChannelBinding extends Enum<ScramClient.ChannelBinding>
Select whether this client will support channel binding or not
  • Enum Constant Details

    • NO

      public static final ScramClient.ChannelBinding NO
      Don't use channel binding. Server must support at least one non-channel binding mechanism.
    • YES

      public static final ScramClient.ChannelBinding YES
      Force use of channel binding. Server must support at least one channel binding mechanism. Channel binding data will need to be provided as part of the ClientFirstMessage.
    • IF_SERVER_SUPPORTS_IT

      public static final ScramClient.ChannelBinding IF_SERVER_SUPPORTS_IT
      Channel binding is preferred. Non-channel binding mechanisms will be used if either the server does not support channel binding, or no channel binding data is provided as part of the ClientFirstMessage
  • Field Details

  • Constructor Details

    • ChannelBinding

      private ChannelBinding(Gs2CbindFlag gs2CbindFlag)
  • Method Details

    • values

      public static ScramClient.ChannelBinding[] 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 ScramClient.ChannelBinding 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
    • gs2CbindFlag

      public Gs2CbindFlag gs2CbindFlag()