Package com.ongres.scram.client
Enum ScramClient.ChannelBinding
- java.lang.Object
-
- java.lang.Enum<ScramClient.ChannelBinding>
-
- com.ongres.scram.client.ScramClient.ChannelBinding
-
- All Implemented Interfaces:
Serializable
,Comparable<ScramClient.ChannelBinding>
- Enclosing class:
- ScramClient
public static enum ScramClient.ChannelBinding extends Enum<ScramClient.ChannelBinding>
Select whether this client will support channel binding or not
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IF_SERVER_SUPPORTS_IT
Channel binding is preferred.NO
Don't use channel binding.YES
Force use of channel binding.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Gs2CbindFlag
gs2CbindFlag()
static ScramClient.ChannelBinding
valueOf(String name)
Returns the enum constant of this type with the specified name.static ScramClient.ChannelBinding[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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
-
-
Method Detail
-
values
public static ScramClient.ChannelBinding[] 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 (ScramClient.ChannelBinding c : ScramClient.ChannelBinding.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ScramClient.ChannelBinding 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 nameNullPointerException
- if the argument is null
-
gs2CbindFlag
public Gs2CbindFlag gs2CbindFlag()
-
-