Enum Class SchemaType
- All Implemented Interfaces:
Serializable,Comparable<SchemaType>,Constable,Enumeration
Secret.getSchema(org.gnome.secret.SchemaType).
@SECRET_SCHEMA_NOTE
A predefined schema for personal passwords stored by the user in the
password manager. This schema has no attributes, and the items are not
meant to be used automatically by applications.
When used to search for items using this schema, it will only match
items that have the same schema. Items stored via libgnome-keyring with the
GNOME_KEYRING_ITEM_NOTE item type will match.
@SECRET_SCHEMA_COMPAT_NETWORK
A predefined schema that is compatible with items stored via the
libgnome-keyring 'network password' functions. This is meant to be used by
applications migrating from libgnome-keyring which stored their secrets as
'network passwords'. It is not recommended that new code use this schema.
When used to search for items using this schema, it will only match
items that have the same schema. Items stored via libgnome-keyring with the
GNOME_KEYRING_ITEM_NETWORK_PASSWORD item type will match.
The following attributes exist in the schema:
Attributes:
<table>
<tr>
<td><tt>user</tt>:</td>
<td>The user name (string).</td>
</tr>
<tr>
<td><tt>domain</tt>:</td>
<td>The login domain or realm (string).</td></tr>
<tr>
<td><tt>object</tt>:</td>
<td>The object or path (string).</td>
</tr>
<tr>
<td><tt>protocol</tt>:</td>
<td>The protocol (a string like 'http').</td>
</tr>
<tr>
<td><tt>port</tt>:</td>
<td>The network port (integer).</td>
</tr>
<tr>
<td><tt>server</tt>:</td>
<td>The hostname or server (string).</td>
</tr>
<tr>
<td><tt>authtype</tt>:</td>
<td>The authentication type (string).</td>
</tr>
</table>
- Since:
- 0.18.6
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNetwork passwords from older libgnome-keyring storagePersonal passwords -
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable TypegetType()Get the GType of the SchemaType classintgetValue()Get the numeric value of this enumstatic SchemaTypeof(int value) Create a new SchemaType for the provided valuestatic SchemaTypeof(MemorySegment address) Create a new SchemaType for the value in the provided memory address.static SchemaTypeReturns the enum constant of this class with the specified name.static SchemaType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOTE
Personal passwords -
COMPAT_NETWORK
Network passwords from older libgnome-keyring storage
-
-
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 SchemaType 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:
getValuein interfaceEnumeration- Returns:
- the enum value
-
of
Create a new SchemaType for the value in the provided memory address.- Parameters:
address- the memory address holding a enum value- Returns:
- the enum for the value in the provided memory address
-
getType
-