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 String ATTRIBUTES
    The key of the D-Bus properties for the attributes of an item.
    static String LABEL
    The key of of the D-Bus properties for the label of an item.
  • Method Summary

    Modifier and Type Method Description
    org.freedesktop.dbus.types.UInt64 created()  
    org.freedesktop.dbus.ObjectPath delete()
    Delete this item.
    Map<String,​String> getAttributes()
    The lookup attributes for this item.
    String getLabel()
    Label is a D-Bus Property.
    Secret getSecret​(org.freedesktop.dbus.ObjectPath session)
    Retrieve the secret for this item.
    String getType()  
    boolean isLocked()  
    org.freedesktop.dbus.types.UInt64 modified()  
    void setAttributes​(Map<String,​String> attributes)
    The lookup attributes for this item.
    void setLabel​(String label)
    Label is a D-Bus Property.
    void setSecret​(Secret secret)
    Set the secret for this item.

    Methods inherited from interface org.freedesktop.dbus.interfaces.DBusInterface

    getObjectPath, isRemote
  • Field Details

  • 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

      Secret getSecret​(org.freedesktop.dbus.ObjectPath session)
      Retrieve the secret for this item.
      Parameters:
      session - The session to use to encode the secret.
      Returns:
      secret — The secret retrieved.
    • setSecret

      void setSecret​(Secret secret)
      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

      Map<String,​String> getAttributes()
      The lookup attributes for this item. Attributes is a D-Bus Property.

      It is managed by using the org.freedesktop.DBus.Properties interface.

      Returns:
      The attributes of the item.
    • setAttributes

      void setAttributes​(Map<String,​String> attributes)
      The lookup attributes for this item. Attributes is a D-Bus Property.

      It is managed by using the org.freedesktop.DBus.Properties interface.

      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.Properties interface.

      Returns:
      The displayable label of this collection.

      Note: The displayable label can differ from the actual name of a collection.

    • setLabel

      void setLabel​(String label)
      Label is a D-Bus Property.

      It is managed by using the org.freedesktop.DBus.Properties interface.

      Parameters:
      label - The displayable label of this collection.

      Note: The displayable label can differ from the actual name of 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.