Class SimpleCollection
java.lang.Object
org.freedesktop.secret.simple.interfaces.SimpleCollection
- All Implemented Interfaces:
AutoCloseable
- Direct Known Subclasses:
SimpleCollection
public abstract class SimpleCollection extends Object implements AutoCloseable
-
Constructor Summary
Constructors Constructor Description SimpleCollection()SimpleCollection(String label, CharSequence password) -
Method Summary
Modifier and Type Method Description abstract 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)abstract Map<String,String>getAttributes(String objectPath)abstract List<String>getItems(Map<String,String> attributes)abstract StringgetLabel(String objectPath)abstract char[]getSecret(String objectPath)abstract Map<String,char[]>getSecrets()abstract DurationgetTimeout()static booleanisAvailable()abstract booleanisLocked()abstract voidlock()abstract voidsetTimeout(Duration timeout)abstract voidunlockWithUserPermission()abstract 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() -
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
-