| Modifier and Type | Class | Description |
|---|---|---|
static class |
Service.CollectionChanged |
|
static class |
Service.CollectionCreated |
|
static class |
Service.CollectionDeleted |
connection, interfaceName, msg, objectPath, serviceName, sh| Constructor | Description |
|---|---|
Service(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.ObjectPath |
changeLock(org.freedesktop.dbus.ObjectPath collection) |
Toggle the lock for a collection with a prompt.
|
abstract Pair |
createCollection(Map<String,org.freedesktop.dbus.types.Variant> properties) |
Create a new collection with the specified properties.
|
abstract Pair |
createCollection(Map<String,org.freedesktop.dbus.types.Variant> properties,
String alias) |
Create a new collection with the specified properties.
|
abstract List<org.freedesktop.dbus.ObjectPath> |
getCollections() |
|
abstract Map<org.freedesktop.dbus.ObjectPath,Secret> |
getSecrets(List<org.freedesktop.dbus.ObjectPath> items,
org.freedesktop.dbus.ObjectPath session) |
Retrieve multiple secrets from different items.
|
abstract Pair<List<org.freedesktop.dbus.ObjectPath>,org.freedesktop.dbus.ObjectPath> |
lock(List<org.freedesktop.dbus.ObjectPath> objects) |
Lock the items.
|
abstract void |
lockService() |
Lock the entire Secret Service API.
|
abstract Pair<org.freedesktop.dbus.types.Variant<byte[]>,org.freedesktop.dbus.ObjectPath> |
openSession(String algorithm,
org.freedesktop.dbus.types.Variant input) |
Open a unique session for the caller application.
|
abstract org.freedesktop.dbus.ObjectPath |
readAlias(String name) |
Get the collection with the given alias.
|
abstract Pair<List<org.freedesktop.dbus.ObjectPath>,List<org.freedesktop.dbus.ObjectPath>> |
searchItems(Map<String,String> attributes) |
Find items in any collection.
|
abstract void |
setAlias(String name,
org.freedesktop.dbus.ObjectPath collection) |
Setup a collection alias.
|
abstract Pair<List<org.freedesktop.dbus.ObjectPath>,org.freedesktop.dbus.ObjectPath> |
unlock(List<org.freedesktop.dbus.ObjectPath> objects) |
Unlock the specified objects.
|
getObjectPath, isRemotegetAllProperties, getConnection, getInterfaceName, getMessageHandler, getObjectPath, getPath, getProperty, getServiceName, getSignalHandler, send, send, setPropertypublic abstract Pair<org.freedesktop.dbus.types.Variant<byte[]>,org.freedesktop.dbus.ObjectPath> openSession(String algorithm, org.freedesktop.dbus.types.Variant input)
algorithm - The algorithm the caller wishes to use.input - Input arguments for the algorithm.Pair,
Variant,
ObjectPathpublic abstract Pair createCollection(Map<String,org.freedesktop.dbus.types.Variant> properties, String alias)
properties - Properties for the new collection. This allows setting the new collection's properties
upon its creation. All READWRITE properties are usable. Specify the property names in
full interface.Property form.
properties = { "org.freedesktop.Secret.Collection.Label": "MyCollection" }
alias - If creating this connection for a well known alias then a string like "default".
If an collection with this well-known alias already exists, then that collection will be
returned instead of creating a new collection. Any readwrite properties provided to this
function will be set on the collection.Pair,
Variant,
ObjectPathpublic abstract Pair createCollection(Map<String,org.freedesktop.dbus.types.Variant> properties)
properties - Properties for the new collection. This allows setting the new collection's properties
upon its creation. All READWRITE properties are usable. Specify the property names in
full interface.Property form.
properties = { "org.freedesktop.Secret.Collection.Label": "MyCollection" }
Pair,
Variant,
ObjectPathpublic abstract Pair<List<org.freedesktop.dbus.ObjectPath>,List<org.freedesktop.dbus.ObjectPath>> searchItems(Map<String,String> attributes)
attributes - Find secrets in any collection.
Example:
{
"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.
Pair,
ObjectPathpublic abstract Pair<List<org.freedesktop.dbus.ObjectPath>,org.freedesktop.dbus.ObjectPath> unlock(List<org.freedesktop.dbus.ObjectPath> objects)
objects - Objects to unlock.Pair,
ObjectPathpublic abstract Pair<List<org.freedesktop.dbus.ObjectPath>,org.freedesktop.dbus.ObjectPath> lock(List<org.freedesktop.dbus.ObjectPath> objects)
objects - Objects to lock.Pairpublic abstract void lockService()
public abstract org.freedesktop.dbus.ObjectPath changeLock(org.freedesktop.dbus.ObjectPath collection)
public abstract Map<org.freedesktop.dbus.ObjectPath,Secret> getSecrets(List<org.freedesktop.dbus.ObjectPath> items, org.freedesktop.dbus.ObjectPath session)
items - Items to get secrets for.session - The session to use to encode the secrets.Secret,
ObjectPathpublic abstract org.freedesktop.dbus.ObjectPath readAlias(String name)
name - An alias, such as 'default'.Static.ObjectPaths,
ObjectPath,
Collectionpublic abstract void setAlias(String name, org.freedesktop.dbus.ObjectPath collection)
name - An alias, such as 'default'.collection - The collection to make the alias point to. To remove an alias use the special value '/'.ObjectPath,
Collectionpublic abstract List<org.freedesktop.dbus.ObjectPath> getCollections()
Copyright © 2019. All rights reserved.