Package org.gnome.gio
Enum Class TlsError
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<TlsError>
,Constable
@Generated("io.github.jwharm.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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe certificate presented could not be parsed or failed validation.The certificate failed to load because a password was incorrect.The TLS handshake failed because the server requested a client-side certificate, but none was provided.The TLS connection was closed without proper notice, which may indicate an attack.The TLS handshake failed because the peer's certificate was not acceptable.The TLS handshake failed because the client sent the fallback SCSV, indicating a protocol downgrade attack.Miscellaneous TLS errorThe TLS handshake failed because the peer does not seem to be a TLS server.No TLS provider is available -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the TlsError classint
getValue()
Get the numeric value of this enumstatic TlsError
of
(int value) Create a new TlsError for the provided valuestatic Quark
quark()
Gets the TLS error quark.static TlsError
Returns the enum constant of this class with the specified name.static TlsError[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNAVAILABLE
No TLS provider is available -
MISC
Miscellaneous TLS error -
BAD_CERTIFICATE
The certificate presented could not be parsed or failed validation. -
NOT_TLS
The TLS handshake failed because the peer does not seem to be a TLS server. -
HANDSHAKE
The TLS handshake failed because the peer's certificate was not acceptable. -
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
The TLS connection was closed without proper notice, which may indicate an attack. See g_tls_connection_set_require_close_notify(). -
INAPPROPRIATE_FALLBACK
The TLS handshake failed because the client sent the fallback SCSV, indicating a protocol downgrade attack. Since: 2.60 -
BAD_CERTIFICATE_PASSWORD
The certificate failed to load because a password was incorrect. Since: 2.72
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
of
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 interfaceEnumeration
- Returns:
- the enum value
-
getType
-
quark
-