Class SimpleCollection

java.lang.Object
org.freedesktop.secret.simple.SimpleCollection
All Implemented Interfaces:
AutoCloseable

public final class SimpleCollection
extends Object
implements AutoCloseable
  • Constructor Details

    • SimpleCollection

      public SimpleCollection() throws IOException
      The default collection.
      Throws:
      IOException - Could not communicate properly with the D-Bus. Check the logs.
    • SimpleCollection

      public SimpleCollection​(String label, CharSequence password) throws IOException
      A user specified collection.
      Parameters:
      label - The displayable label of the collection

      NOTE: The 'label' of a collection may differ from the 'id' of a collection. The 'id' is assigned by the Secret Service and used in the DBus object path of a collection or item.

      A SimpleCollection can't handle collections with the same label, but different ids correctly.

      password - Password of the collection
      Throws:
      IOException - Could not communicate properly with the D-Bus. Check the logs.
  • Method Details