Top Fields Constructors Methods
org.freedesktop.secret.simple.interfaces

public abstract Class SimpleCollection

extends Object
implements AutoCloseable
Class Inheritance
All Implemented Interfaces
java.lang.AutoCloseable
Known Direct Subclasses
org.freedesktop.secret.simple.SimpleCollection
Imports
org.slf4j.Logger, .LoggerFactory, java.io.IOException, java.security.AccessControlException, java.time.Duration, java.util.List, .Map

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public abstract void
public abstract void
close()

Redeclares java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.

public abstract String
createItem(String label, CharSequence password)

public abstract String
createItem(String label, CharSequence password, Map<String, String> attributes)

public abstract void
public abstract void
deleteItem(String objectPath)

public abstract void
deleteItems(List<String> objectPaths)

public static synchronized boolean
public abstract Map<String, String>
getAttributes(String objectPath)

public abstract List<String>
getItems(Map<String, String> attributes)

public abstract String
getLabel(String objectPath)

public abstract char[]
getSecret(String objectPath)

public abstract Map<String, char[]>
public abstract Duration
public static boolean
public static boolean
public abstract boolean
public abstract void
lock()

public abstract void
public abstract void
public abstract void
updateItem(String objectPath, String label, CharSequence password, Map<String, String> attributes)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private static final Logger log

Constructor Detail

SimpleCollectionback to summary
public SimpleCollection() throws IOException
SimpleCollectionback to summary
public SimpleCollection(String label, CharSequence password) throws IOException

Method Detail

clearback to summary
public abstract void clear()
closeback to summary
public abstract void close()

Redeclares java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

createItemback to summary
public abstract String createItem(String label, CharSequence password) throws IllegalArgumentException
createItemback to summary
public abstract String createItem(String label, CharSequence password, Map<String, String> attributes) throws IllegalArgumentException
deleteback to summary
public abstract void delete() throws AccessControlException
deleteItemback to summary
public abstract void deleteItem(String objectPath) throws AccessControlException
deleteItemsback to summary
public abstract void deleteItems(List<String> objectPaths) throws AccessControlException
disconnectback to summary
public static synchronized boolean disconnect()
getAttributesback to summary
public abstract Map<String, String> getAttributes(String objectPath)
getItemsback to summary
public abstract List<String> getItems(Map<String, String> attributes)
getLabelback to summary
public abstract String getLabel(String objectPath)
getSecretback to summary
public abstract char[] getSecret(String objectPath)
getSecretsback to summary
public abstract Map<String, char[]> getSecrets() throws AccessControlException
getTimeoutback to summary
public abstract Duration getTimeout()
isAvailableback to summary
public static boolean isAvailable()
isConnectedback to summary
public static boolean isConnected()
isLockedback to summary
public abstract boolean isLocked()
lockback to summary
public abstract void lock()
setTimeoutback to summary
public abstract void setTimeout(Duration timeout)
unlockWithUserPermissionback to summary
public abstract void unlockWithUserPermission() throws AccessControlException
updateItemback to summary
public abstract void updateItem(String objectPath, String label, CharSequence password, Map<String, String> attributes) throws IllegalArgumentException