| Modifier and Type | Field and Description |
|---|---|
| private Collection | |
| private static DBusConnection | |
| private Secret | |
| private Boolean | |
| private static final Logger | |
| private Prompt | |
| private Service | |
| private Session | |
| private static Thread | |
| private Duration | |
| private TransportEncryption | |
| private InternalUnsupportedGuiltRiddenInterface |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SimpleCollection(String
The displayable label of the collection label, CharSequence Note The
The SimpleCollection can't handle collections with the same label, but different ids correctly,
as the Password of the collection password)A user specified collection. |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Implements abstract org. Clears the private key of the transport encryption and the passphrase of the collection. |
| public void | close()
Implements abstract org. Implements java. Closes this resource, relinquishing any underlying resources. |
| public String | Returns: DBus object path or nullThe displayable label of the new item label, CharSequence The password of the new item password, Map<String, String> The attributes of the new item attributes)Implements abstract org. Creates an item with the provided properties in this collection. |
| public String | Returns: DBus object pathThe displayable label of the new item label, CharSequence The password of the new item password)Implements abstract org. Creates an item with the provided properties in this collection. |
| public void | delete()
Implements abstract org. Delete this collection. |
| public void | deleteItem(String
The DBus object path of the item objectPath)Implements abstract org. Delete an item from this collection. |
| public void | deleteItems(List<String>
The DBus object paths of the items objectPaths)Implements abstract org. Delete specified items from this collection. |
| public static synchronized boolean | disconnect()
Hides org. Close the DBus connection immediately. |
| private boolean | |
| public Map | Returns: item attributes or nullThe DBus object path of the item objectPath)Implements abstract org. Get the user specified attributes of an item. |
| private ObjectPath | getCollectionPath(String label)
References Deprecated
ObjectPath is deprecated or references (maybe indirectly) at least one deprecated element.
|
| private static DBusConnection | |
| private Item | |
| public List | Returns: object paths or nullThe attributes of the secret attributes)Implements abstract org. Get the object paths of items with given attributes. |
| public String | Returns: label or nullThe DBus object path of the item objectPath)Implements abstract org. Get the displayable label of an item. |
| private Map | |
| public char[] | Returns: plain chars or nullThe DBus object path of the item objectPath)Implements abstract org. Get the secret of the item. |
| public Map | Returns: Mapping of DBus object paths and plain chars or nullImplements abstract org. Get the secrets from this collection. |
| public Duration | getTimeout()
Implements abstract org.
|
| private void | |
| public static boolean | Returns: true if the secret service is available, otherwise false and will log an error message.Hides org. Checks if all services are provided by the system:
|
| public static boolean | Returns: true if connected to the D-Bus, otherwise falseHides org. Checks the D-Bus connection status. |
| private boolean | |
| public static boolean | Returns: true if the secret service provider is gnome keyring, otherwise false and will log a warning message.Checks if private/unsupported services are provided by the system:
|
| public boolean | |
| public void | |
| private List | |
| private void | performPrompt(ObjectPath path)
References Deprecated
ObjectPath is deprecated or references (maybe indirectly) at least one deprecated element.
|
| public void | setTimeout(Duration timeout)
Implements abstract org.
|
| private static Thread | setupShutdownHook()
Sets up a shutdown hook to close the global D-Bus connection eventually at the end of the static lifetime. |
| private void | |
| public void | unlockWithUserPermission()
Implements abstract org. Locks and unlocks the default collection explicitly. |
| public void | updateItem(String
The DBus object path of the item objectPath, String The displayable label of the new item label, CharSequence The password of the new item password, Map<String, String> The attributes of the new item attributes)Implements abstract org. Updates an item with the provided properties. |
| collection | back to summary |
|---|---|
| private Collection collection | |
| connection | back to summary |
|---|---|
| private static DBusConnection connection | |
| encrypted | back to summary |
|---|---|
| private Secret encrypted | |
| isUnlockedOnceWithUserPermission | back to summary |
|---|---|
| private Boolean isUnlockedOnceWithUserPermission | |
| log | back to summary |
|---|---|
| private static final Logger log Hides org. | |
| prompt | back to summary |
|---|---|
| private Prompt prompt | |
| service | back to summary |
|---|---|
| private Service service | |
| session | back to summary |
|---|---|
| private Session session | |
| shutdownHook | back to summary |
|---|---|
| private static Thread shutdownHook | |
| timeout | back to summary |
|---|---|
| private Duration timeout | |
| transport | back to summary |
|---|---|
| private TransportEncryption transport | |
| withoutPrompt | back to summary |
|---|---|
| private InternalUnsupportedGuiltRiddenInterface withoutPrompt | |
| SimpleCollection | back to summary |
|---|---|
| public SimpleCollection() throws IOException The default collection.
| |
| SimpleCollection | back to summary |
|---|---|
| public SimpleCollection(String label, CharSequence password) throws IOException A user specified collection.
| |
| clear | back to summary |
|---|---|
| public void clear() Implements abstract org. Clears the private key of the transport encryption and the passphrase of the collection.
| |
| close | back to summary |
|---|---|
| public void close() Implements abstract org. Implements java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| createItem | back to summary |
|---|---|
| public String createItem(String label, CharSequence password, Map<String, String> attributes) throws IllegalArgumentException Implements abstract org. Creates an item with the provided properties in this collection.
| |
| createItem | back to summary |
|---|---|
| public String createItem(String label, CharSequence password) throws IllegalArgumentException Implements abstract org. Creates an item with the provided properties in this collection.
| |
| delete | back to summary |
|---|---|
| public void delete() throws AccessControlException Implements abstract org. Delete this collection.
| |
| deleteItem | back to summary |
|---|---|
| public void deleteItem(String objectPath) throws AccessControlException Implements abstract org. Delete an item from this collection. Deleting a password form the default collection requires user permission. | |
| deleteItems | back to summary |
|---|---|
| public void deleteItems(List<String> objectPaths) throws AccessControlException Implements abstract org. Delete specified items from this collection. Deleting passwords form the default collection requires user permission. | |
| disconnect | back to summary |
|---|---|
| public static synchronized boolean disconnect() Hides org. Close the DBus connection immediately. Waits for the DBus connection to close within 2 seconds. | |
| exists | back to summary |
|---|---|
| private boolean exists(String label) | |
| getAttributes | back to summary |
|---|---|
| public Map Implements abstract org. Get the user specified attributes of an item.
The attributes can contain an additional | |
| getCollectionPath | back to summary |
|---|---|
| private ObjectPath getCollectionPath(String label)
References Deprecated
See corresponding docs for further information. | |
| getConnection | back to summary |
|---|---|
| private static DBusConnection getConnection() Try to get a new DBus connection.
| |
| getItem | back to summary |
|---|---|
| private Item getItem(String path) | |
| getItems | back to summary |
|---|---|
| public List Implements abstract org. Get the object paths of items with given attributes. | |
| getLabel | back to summary |
|---|---|
| public String getLabel(String objectPath) Implements abstract org. Get the displayable label of an item. | |
| getLabels | back to summary |
|---|---|
| private Map | |
| getSecret | back to summary |
|---|---|
| public char[] getSecret(String objectPath) Implements abstract org. Get the secret of the item. | |
| getSecrets | back to summary |
|---|---|
| public Map Implements abstract org. Get the secrets from this collection. Retrieving all passwords form the default collection requires user permission. | |
| getTimeout | back to summary |
|---|---|
| public Duration getTimeout() Implements abstract org.
| |
| init | back to summary |
|---|---|
| private void init() throws IOException | |
| isAvailable | back to summary |
|---|---|
| public static boolean isAvailable() Hides org. Checks if all services are provided by the system:
| |
| isConnected | back to summary |
|---|---|
| public static boolean isConnected() Hides org. Checks the D-Bus connection status.
| |
| isDefault | back to summary |
|---|---|
| private boolean isDefault() | |
| isGnomeKeyringAvailable | back to summary |
|---|---|
| public static boolean isGnomeKeyringAvailable() Checks if private/unsupported services are provided by the system:
| |
| isLocked | back to summary |
|---|---|
| public boolean isLocked() Implements abstract org.
| |
| lock | back to summary |
|---|---|
| public void lock() Implements abstract org.
| |
| lockable | back to summary |
|---|---|
| private List | |
| performPrompt | back to summary |
|---|---|
| private void performPrompt(ObjectPath path)
References Deprecated
See corresponding docs for further information. | |
| setTimeout | back to summary |
|---|---|
| public void setTimeout(Duration timeout) Implements abstract org.
| |
| setupShutdownHook | back to summary |
|---|---|
| private static Thread setupShutdownHook() Sets up a shutdown hook to close the global D-Bus connection eventually at the end of the static lifetime. | |
| unlock | back to summary |
|---|---|
| private void unlock() | |
| unlockWithUserPermission | back to summary |
|---|---|
| public void unlockWithUserPermission() throws AccessControlException Implements abstract org. Locks and unlocks the default collection explicitly. The default collection gets only locked on the first call of a session. Once the default collection is unlocked the user will not be prompted again as long as the default collection stays unlocked. This method is used to enforce user interaction for:
| |
| updateItem | back to summary |
|---|---|
| public void updateItem(String objectPath, String label, CharSequence password, Map<String, String> attributes) throws IllegalArgumentException Implements abstract org. Updates an item with the provided properties.
| |