org.freedesktop.dbus.interfaces.DBusInterfacepublic class Collection extends Collection
Collection.ItemChanged, Collection.ItemCreated, Collection.ItemDeleted| Modifier and Type | Field | Description |
|---|---|---|
static List<Class<? extends org.freedesktop.dbus.messages.DBusSignal>> |
signals |
LABELconnection, interfaceName, msg, objectPath, serviceName, sh| Constructor | Description |
|---|---|
Collection(String id,
Service service) |
|
Collection(org.freedesktop.dbus.DBusPath path,
Service service) |
|
Collection(org.freedesktop.dbus.DBusPath path,
Service service,
List<Class<? extends org.freedesktop.dbus.messages.DBusSignal>> signals) |
| Modifier and Type | Method | Description |
|---|---|---|
org.freedesktop.dbus.types.UInt64 |
created() |
|
Pair<org.freedesktop.dbus.ObjectPath,org.freedesktop.dbus.ObjectPath> |
createItem(Map<String,org.freedesktop.dbus.types.Variant> properties,
Secret secret,
boolean replace) |
Create an item with the given attributes, secret and label.
|
org.freedesktop.dbus.ObjectPath |
delete() |
Delete this collection.
|
String |
getId() |
|
List<org.freedesktop.dbus.ObjectPath> |
getItems() |
Items is a D-Bus Property.
|
String |
getLabel() |
Label is a D-Bus Property.
|
String |
getObjectPath() |
|
boolean |
isLocked() |
|
boolean |
isRemote() |
|
org.freedesktop.dbus.types.UInt64 |
modified() |
|
List<org.freedesktop.dbus.ObjectPath> |
searchItems(Map<String,String> attributes) |
Search for items in this collection matching the lookup attributes.
|
void |
setLabel(String label) |
Label is a D-Bus Property.
|
createPropertiesgetAllProperties, getConnection, getInterfaceName, getMessageHandler, getPath, getProperty, getServiceName, getSignalHandler, send, send, setPropertypublic Collection(org.freedesktop.dbus.DBusPath path,
Service service)
public Collection(org.freedesktop.dbus.DBusPath path,
Service service,
List<Class<? extends org.freedesktop.dbus.messages.DBusSignal>> signals)
public org.freedesktop.dbus.ObjectPath delete()
Collectiondelete in class CollectionObjectPathpublic List<org.freedesktop.dbus.ObjectPath> searchItems(Map<String,String> attributes)
CollectionsearchItems in class Collectionattributes - Attributes to match.ObjectPath,
Secret,
Itempublic Pair<org.freedesktop.dbus.ObjectPath,org.freedesktop.dbus.ObjectPath> createItem(Map<String,org.freedesktop.dbus.types.Variant> properties, Secret secret, boolean replace)
CollectioncreateItem in class Collectionproperties - The properties for the new item.
This allows setting the new item's properties upon its creation. All READWRITE properties
are useable. Specify the property names in full interface.Property form.
Example 13.2. Example for properties of an item:
properties = {
"org.freedesktop.Secret.Item.Label": "MyItem",
"org.freedesktop.Secret.Item.Attributes": {
"Attribute1": "Value1",
"Attribute2": "Value2"
}
}
Note: Please note that there is a distinction between the terms Property, which refers to D-Bus properties of an object, and Attribute, which refers to one of a secret item's string-valued attributes.
secret - The secret to store in the item, encoded with the included session.replace - Whether to replace an item with the same attributes or not.Pair,
ObjectPath,
Secret,
Itempublic List<org.freedesktop.dbus.ObjectPath> getItems()
CollectionIt is managed by using the org.freedesktop.DBus.Properties interface.
getItems in class Collectionpublic String getLabel()
CollectionIt is managed by using the org.freedesktop.DBus.Properties interface.
getLabel in class Collection
Note:
The displayable label can differ from the actual name of a collection.
public void setLabel(String label)
CollectionIt is managed by using the org.freedesktop.DBus.Properties interface.
setLabel in class Collectionlabel - The displayable label of this collection.
Note:
The displayable label can differ from the actual name of a collection.
public boolean isLocked()
isLocked in class Collectionpublic org.freedesktop.dbus.types.UInt64 created()
created in class Collectionpublic org.freedesktop.dbus.types.UInt64 modified()
modified in class Collectionpublic boolean isRemote()
public String getObjectPath()
getObjectPath in interface org.freedesktop.dbus.interfaces.DBusInterfacegetObjectPath in class Messagingpublic String getId()
Copyright © 2019. All rights reserved.