| 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.
|
connection, interfaceName, msg, objectPath, serviceName, sh| Constructor | Description |
|---|---|
Item(org.freedesktop.dbus.connections.impl.DBusConnection connection,
List<Class<? extends org.freedesktop.dbus.messages.DBusSignal>> signals,
String serviceName,
String objectPath,
String interfaceName) |
| Modifier and Type | Method | Description |
|---|---|---|
abstract org.freedesktop.dbus.types.UInt64 |
created() |
|
static Map<String,org.freedesktop.dbus.types.Variant> |
createProperties(String label,
Map<String,String> attributes) |
Create properties for a new item.
|
abstract org.freedesktop.dbus.ObjectPath |
delete() |
Delete this item.
|
abstract Map<String,String> |
getAttributes() |
The lookup attributes for this item.
|
abstract String |
getLabel() |
Label is a D-Bus Property.
|
abstract Secret |
getSecret(org.freedesktop.dbus.ObjectPath session) |
Retrieve the secret for this item.
|
abstract String |
getType() |
|
abstract boolean |
isLocked() |
|
abstract org.freedesktop.dbus.types.UInt64 |
modified() |
|
abstract void |
setAttributes(Map<String,String> attributes) |
The lookup attributes for this item.
|
abstract void |
setLabel(String label) |
Label is a D-Bus Property.
|
abstract void |
setSecret(Secret secret) |
Set the secret for this item.
|
getObjectPath, isRemotegetAllProperties, getConnection, getInterfaceName, getMessageHandler, getObjectPath, getPath, getProperty, getServiceName, getSignalHandler, send, send, setPropertypublic static final String LABEL
public static final String ATTRIBUTES
public static Map<String,org.freedesktop.dbus.types.Variant> createProperties(String label, Map<String,String> attributes)
label - The displayable label of the item.attributes - String-valued attributes of the item.
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.
Example:
properties = {
"org.freedesktop.Secret.Item.Label": "MyItem",
"org.freedesktop.Secret.Item.Attributes": {
"Attribute1": "Value1",
"Attribute2": "Value2"
}
}
Note: Properties for a collection and properties for an item are not the same.
public abstract org.freedesktop.dbus.ObjectPath delete()
public abstract Secret getSecret(org.freedesktop.dbus.ObjectPath session)
session - The session to use to encode the secret.public abstract void setSecret(Secret secret)
secret - The secret to set, encoded for the included session.public abstract boolean isLocked()
public abstract Map<String,String> getAttributes()
It is managed by using the org.freedesktop.DBus.Properties interface.
public abstract void setAttributes(Map<String,String> attributes)
It is managed by using the org.freedesktop.DBus.Properties interface.
attributes - The attributes of the item.public abstract String getLabel()
It is managed by using the org.freedesktop.DBus.Properties interface.
Note:
The displayable label can differ from the actual name of a collection.
public abstract void setLabel(String label)
It is managed by using the org.freedesktop.DBus.Properties interface.
label - The displayable label of this collection.
Note:
The displayable label can differ from the actual name of a collection.
public abstract String getType()
public abstract org.freedesktop.dbus.types.UInt64 created()
public abstract org.freedesktop.dbus.types.UInt64 modified()
Copyright © 2019. All rights reserved.