Package org.gnome.gio
Enum Class TlsChannelBindingError
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<TlsChannelBindingError>
,Constable
@Generated("io.github.jwharm.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.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAny other backend error preventing binding data retrieval.The handshake is not yet complete on the connection which is a strong requirement for any existing binding type.Handshake is complete but binding data is not available.Either entire binding retrieval facility or specific binding type is not implemented in the TLS backend.Binding type is not supported on the current connection. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the TlsChannelBindingError classint
getValue()
Get the numeric value of this enumstatic TlsChannelBindingError
of
(int value) Create a new TlsChannelBindingError for the provided valuestatic Quark
quark()
Gets the TLS channel binding error quark.static TlsChannelBindingError
Returns the enum constant of this class with the specified name.static TlsChannelBindingError[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_IMPLEMENTED
Either entire binding retrieval facility or specific binding type is not implemented in the TLS backend. -
INVALID_STATE
The handshake is not yet complete on the connection which is a strong requirement for any existing binding type. -
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
Binding type is not supported on the current connection. This error could be triggered when requestingtls-server-end-point
binding data for a certificate which has no hash function or uses multiple hash functions. -
GENERAL_ERROR
Any other backend error preventing binding data retrieval.
-
-
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 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 interfaceEnumeration
- Returns:
- the enum value
-
getType
-
quark
-