Class SimpleCollection
java.lang.Object
org.freedesktop.secret.simple.interfaces.SimpleCollection
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
SimpleCollection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidclear()abstract voidclose()abstract StringcreateItem(String label, CharSequence password) abstract StringcreateItem(String label, CharSequence password, Map<String, String> attributes) abstract voiddelete()abstract voiddeleteItem(String objectPath) abstract voiddeleteItems(List<String> objectPaths) static booleangetAttributes(String objectPath) abstract Stringabstract char[]abstract Durationstatic booleanstatic booleanabstract booleanisLocked()abstract voidlock()abstract voidsetTimeout(Duration timeout) abstract voidabstract voidupdateItem(String objectPath, String label, CharSequence password, Map<String, String> attributes)
-
Constructor Details
-
SimpleCollection
- Throws:
IOException
-
SimpleCollection
- Throws:
IOException
-
-
Method Details
-
isAvailable
public static boolean isAvailable() -
isConnected
public static boolean isConnected() -
disconnect
public static boolean disconnect() -
clear
public abstract void clear() -
close
public abstract void close()- Specified by:
closein interfaceAutoCloseable
-
createItem
public abstract String createItem(String label, CharSequence password) throws IllegalArgumentException - Throws:
IllegalArgumentException
-
createItem
public abstract String createItem(String label, CharSequence password, Map<String, String> attributes) throws IllegalArgumentException- Throws:
IllegalArgumentException
-
delete
- Throws:
AccessControlException
-
deleteItem
- Throws:
AccessControlException
-
deleteItems
- Throws:
AccessControlException
-
getAttributes
-
getItems
-
getLabel
-
getSecret
-
getSecrets
- Throws:
AccessControlException
-
getTimeout
-
isLocked
public abstract boolean isLocked() -
lock
public abstract void lock() -
setTimeout
-
unlockWithUserPermission
- Throws:
AccessControlException
-
updateItem
public abstract void updateItem(String objectPath, String label, CharSequence password, Map<String, String> attributes) throws IllegalArgumentException- Throws:
IllegalArgumentException
-