Enum Class TlsError

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

@Generated("org.javagi.JavaGI") public enum TlsError extends Enum<TlsError> implements Enumeration
An error code used with G_TLS_ERROR in a GError returned from a TLS-related routine.
Since:
2.28
  • Enum Constant Details

    • UNAVAILABLE

      public static final TlsError UNAVAILABLE
      No TLS provider is available
    • MISC

      public static final TlsError MISC
      Miscellaneous TLS error
    • BAD_CERTIFICATE

      public static final TlsError BAD_CERTIFICATE
      The certificate presented could not be parsed or failed validation.
    • NOT_TLS

      public static final TlsError NOT_TLS
      The TLS handshake failed because the peer does not seem to be a TLS server.
    • HANDSHAKE

      public static final TlsError HANDSHAKE
      The TLS handshake failed because the peer's certificate was not acceptable.
    • CERTIFICATE_REQUIRED

      public static final TlsError CERTIFICATE_REQUIRED
      The TLS handshake failed because the server requested a client-side certificate, but none was provided. See g_tls_connection_set_certificate().
    • EOF

      public static final TlsError EOF
      The TLS connection was closed without proper notice, which may indicate an attack. See g_tls_connection_set_require_close_notify().
    • INAPPROPRIATE_FALLBACK

      public static final TlsError INAPPROPRIATE_FALLBACK
      The TLS handshake failed because the client sent the fallback SCSV, indicating a protocol downgrade attack. Since: 2.60
    • BAD_CERTIFICATE_PASSWORD

      public static final TlsError BAD_CERTIFICATE_PASSWORD
      The certificate failed to load because a password was incorrect. Since: 2.72
  • Method Details

    • values

      public static TlsError[] 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 TlsError 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 TlsError of(int value)
      Create a new TlsError 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 TlsError of(MemorySegment address)
      Create a new TlsError 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 TlsError class.
      Returns:
      the GType
    • quark

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