Package org.gnome.gio
Enum Class TlsPasswordFlags
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<TlsPasswordFlags>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum TlsPasswordFlags
extends Enum<TlsPasswordFlags>
implements Enumeration
Various flags for the password.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionHint to the user that this is the last try to get this password right.Hint to the user that the password has been wrong many times, and the user may not have many chances left.No flagsFor PKCS11
, the context-specific PIN is required.For PKCS11
, the security officer PIN is required.For PKCS11
, the user PIN is required.The password was wrong, and the user should retry. -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the TlsPasswordFlags classint
getValue()
Get the numeric value of this enumstatic TlsPasswordFlags
of
(int value) Create a new TlsPasswordFlags for the provided valuestatic TlsPasswordFlags
Returns the enum constant of this class with the specified name.static TlsPasswordFlags[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No flags -
RETRY
The password was wrong, and the user should retry. -
MANY_TRIES
Hint to the user that the password has been wrong many times, and the user may not have many chances left. -
FINAL_TRY
Hint to the user that this is the last try to get this password right. -
PKCS11_USER
For PKCS11
, the user PIN is required. Since: 2.70. -
PKCS11_SECURITY_OFFICER
For PKCS11
, the security officer PIN is required. Since: 2.70. -
PKCS11_CONTEXT_SPECIFIC
For PKCS11
, the context-specific PIN is required. Since: 2.70.
-
-
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 TlsPasswordFlags 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
-