Enum Class TlsPasswordFlags

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

@Generated("org.javagi.JavaGI") public enum TlsPasswordFlags extends Enum<TlsPasswordFlags> implements Enumeration
Various flags for the password.
Since:
2.30
  • Enum Constant Details

    • NONE

      public static final TlsPasswordFlags NONE
      No flags
    • RETRY

      public static final TlsPasswordFlags RETRY
      The password was wrong, and the user should retry.
    • MANY_TRIES

      public static final TlsPasswordFlags 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

      public static final TlsPasswordFlags FINAL_TRY
      Hint to the user that this is the last try to get this password right.
    • PKCS11_USER

      public static final TlsPasswordFlags PKCS11_USER
      For PKCS 11, the user PIN is required. Since: 2.70.
    • PKCS11_SECURITY_OFFICER

      public static final TlsPasswordFlags PKCS11_SECURITY_OFFICER
      For PKCS 11, the security officer PIN is required. Since: 2.70.
    • PKCS11_CONTEXT_SPECIFIC

      public static final TlsPasswordFlags PKCS11_CONTEXT_SPECIFIC
      For PKCS 11, the context-specific PIN is required. Since: 2.70.
  • Method Details

    • values

      public static TlsPasswordFlags[] 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 TlsPasswordFlags 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
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static Set<TlsPasswordFlags> of(int flags)
      Create a new EnumSet<TlsPasswordFlags> for the provided bitfield
      Parameters:
      flags - the TlsPasswordFlags bitfield
      Returns:
      the EnumSet for the provided bitfield
    • of

      public static Set<TlsPasswordFlags> of(MemorySegment address)
      Create a new EnumSet<TlsPasswordFlags> for the bitfield in the provided memory address.
      Parameters:
      address - the memory address holding a bitfield value
      Returns:
      the EnumSet for the bitfield in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the TlsPasswordFlags class.
      Returns:
      the GType