Package org.gnome.gio
Enum Class TlsCertificateFlags
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<TlsCertificateFlags>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum TlsCertificateFlags
extends Enum<TlsCertificateFlags>
implements Enumeration
A set of flags describing TLS certification validation. This can be
used to describe why a particular certificate was rejected (for
example, in
GTlsConnection
::accept-certificate).
GLib guarantees that if certificate verification fails, at least one
flag will be set, but it does not guarantee that all possible flags
will be set. Accordingly, you may not safely decide to ignore any
particular type of error. For example, it would be incorrect to mask
EXPIRED
if you want to allow expired certificates,
because this could potentially be the only error flag set even if
other problems exist with the certificate.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe certificate does not match the expected identity of the site that it was retrieved from.The certificate has expiredSome other error occurred validating the certificateThe certificate's algorithm is considered insecure.No flags set.The certificate's activation time is still in the futureThe certificate has been revoked according to theGTlsConnection
's certificate revocation list.The signing certificate authority is not known.the combination of all of the above flags -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the TlsCertificateFlags classint
getValue()
Get the numeric value of this enumstatic TlsCertificateFlags
of
(int value) Create a new TlsCertificateFlags for the provided valuestatic TlsCertificateFlags
Returns the enum constant of this class with the specified name.static TlsCertificateFlags[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_FLAGS
No flags set. Since: 2.74 -
UNKNOWN_CA
The signing certificate authority is not known. -
BAD_IDENTITY
The certificate does not match the expected identity of the site that it was retrieved from. -
NOT_ACTIVATED
The certificate's activation time is still in the future -
EXPIRED
The certificate has expired -
REVOKED
The certificate has been revoked according to theGTlsConnection
's certificate revocation list. -
INSECURE
The certificate's algorithm is considered insecure. -
GENERIC_ERROR
Some other error occurred validating the certificate -
VALIDATE_ALL
the combination of all of the above flags
-
-
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 TlsCertificateFlags for the provided value- Parameters:
value
- the bitfield value- Returns:
- the bitfield 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
-