Enum Class TlsChannelBindingError

java.lang.Object
java.lang.Enum<TlsChannelBindingError>
org.gnome.gio.TlsChannelBindingError
All Implemented Interfaces:
Serializable, Comparable<TlsChannelBindingError>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum TlsChannelBindingError extends Enum<TlsChannelBindingError> implements Enumeration
An error code used with G_TLS_CHANNEL_BINDING_ERROR in a GError to indicate a TLS channel binding retrieval error.
Since:
2.66
  • Enum Constant Details

    • NOT_IMPLEMENTED

      public static final TlsChannelBindingError NOT_IMPLEMENTED
      Either entire binding retrieval facility or specific binding type is not implemented in the TLS backend.
    • INVALID_STATE

      public static final TlsChannelBindingError INVALID_STATE
      The handshake is not yet complete on the connection which is a strong requirement for any existing binding type.
    • NOT_AVAILABLE

      public static final TlsChannelBindingError NOT_AVAILABLE
      Handshake is complete but binding data is not available. That normally indicates the TLS implementation failed to provide the binding data. For example, some implementations do not provide a peer certificate for resumed connections.
    • NOT_SUPPORTED

      public static final TlsChannelBindingError NOT_SUPPORTED
      Binding type is not supported on the current connection. This error could be triggered when requesting tls-server-end-point binding data for a certificate which has no hash function or uses multiple hash functions.
    • GENERAL_ERROR

      public static final TlsChannelBindingError GENERAL_ERROR
      Any other backend error preventing binding data retrieval.
  • Method Details

    • values

      public static TlsChannelBindingError[] 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 TlsChannelBindingError 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
    • of

      public static TlsChannelBindingError of(int value)
      Create a new TlsChannelBindingError for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static TlsChannelBindingError of(MemorySegment address)
      Create a new TlsChannelBindingError for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the TlsChannelBindingError class.
      Returns:
      the GType
    • quark

      public static Quark quark()
      Gets the TLS channel binding error quark.
      Returns:
      a GQuark.
      Since:
      2.66