Enum Class TlsRehandshakeMode

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

@Generated("org.javagi.JavaGI") @Deprecated public enum TlsRehandshakeMode extends Enum<TlsRehandshakeMode> implements Enumeration
Deprecated.
Changing the rehandshake mode is no longer required for compatibility. Also, rehandshaking has been removed from the TLS protocol in TLS 1.3.
When to allow rehandshaking. See g_tls_connection_set_rehandshake_mode().
Since:
2.28
  • Enum Constant Details

    • NEVER

      public static final TlsRehandshakeMode NEVER
      Deprecated.
      Never allow rehandshaking
    • SAFELY

      public static final TlsRehandshakeMode SAFELY
      Deprecated.
      Allow safe rehandshaking only
    • UNSAFELY

      public static final TlsRehandshakeMode UNSAFELY
      Deprecated.
      Allow unsafe rehandshaking
  • Method Details

    • values

      public static TlsRehandshakeMode[] values()
      Deprecated.
      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 TlsRehandshakeMode valueOf(String name)
      Deprecated.
      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 TlsRehandshakeMode of(int value)
      Deprecated.
      Create a new TlsRehandshakeMode for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

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

      public static TlsRehandshakeMode of(MemorySegment address)
      Deprecated.
      Create a new TlsRehandshakeMode 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()
      Deprecated.
      Get the GType of the TlsRehandshakeMode class.
      Returns:
      the GType