Interface Item
- All Superinterfaces:
org.freedesktop.dbus.interfaces.DBusInterface
- All Known Implementing Classes:
Item
public interface Item
extends org.freedesktop.dbus.interfaces.DBusInterface
-
Field Summary
Fields Modifier and Type Field Description static StringATTRIBUTESThe key of the D-Bus properties for the attributes of an item.static StringLABELThe key of of the D-Bus properties for the label of an item. -
Method Summary
Modifier and Type Method Description org.freedesktop.dbus.types.UInt64created()org.freedesktop.dbus.ObjectPathdelete()Delete this item.Map<String,String>getAttributes()The lookup attributes for this item.StringgetLabel()Label is a D-Bus Property.SecretgetSecret(org.freedesktop.dbus.ObjectPath session)Retrieve the secret for this item.StringgetType()booleanisLocked()org.freedesktop.dbus.types.UInt64modified()voidsetAttributes(Map<String,String> attributes)The lookup attributes for this item.voidsetLabel(String label)Label is a D-Bus Property.voidsetSecret(Secret secret)Set the secret for this item.
-
Field Details
-
LABEL
The key of of the D-Bus properties for the label of an item.- See Also:
- Constant Field Values
-
ATTRIBUTES
The key of the D-Bus properties for the attributes of an item.- See Also:
- Constant Field Values
-
-
Method Details
-
delete
org.freedesktop.dbus.ObjectPath delete()Delete this item.- Returns:
- Prompt — A prompt objectpath, or the special value '/' if no prompt is necessary.
-
getSecret
Retrieve the secret for this item.- Parameters:
session- The session to use to encode the secret.- Returns:
- secret — The secret retrieved.
-
setSecret
Set the secret for this item.- Parameters:
secret- The secret to set, encoded for the included session.
-
isLocked
boolean isLocked()- Returns:
- Whether the item is locked and requires authentication, or not.
-
getAttributes
The lookup attributes for this item. Attributes is a D-Bus Property.It is managed by using the
org.freedesktop.DBus.Propertiesinterface.- Returns:
- The attributes of the item.
-
setAttributes
The lookup attributes for this item. Attributes is a D-Bus Property.It is managed by using the
org.freedesktop.DBus.Propertiesinterface.- Parameters:
attributes- The attributes of the item.
-
getLabel
String getLabel()Label is a D-Bus Property.It is managed by using the
org.freedesktop.DBus.Propertiesinterface.- Returns:
- The displayable label of this collection.
Note: The displayable
labelcan differ from the actualnameof a collection.
-
setLabel
Label is a D-Bus Property.It is managed by using the
org.freedesktop.DBus.Propertiesinterface.- Parameters:
label- The displayable label of this collection.Note: The displayable
labelcan differ from the actualnameof a collection.
-
getType
String getType()- Returns:
- The "xdg:schema" of the item attributes.
-
created
org.freedesktop.dbus.types.UInt64 created()- Returns:
- The unix time when the item was created.
-
modified
org.freedesktop.dbus.types.UInt64 modified()- Returns:
- The unix time when the item was last modified.
-