java.lang.Object
org.freedesktop.dbus.Container
org.freedesktop.dbus.Struct
de.swiesend.secretservice.Secret
All Implemented Interfaces:
AutoCloseable

public final class Secret extends org.freedesktop.dbus.Struct implements AutoCloseable
  • Field Details

  • Constructor Details

    • Secret

      public Secret(org.freedesktop.dbus.ObjectPath session, byte[] value)
    • Secret

      public Secret(org.freedesktop.dbus.ObjectPath session, byte[] parameters, byte[] value)
    • Secret

      public Secret(org.freedesktop.dbus.ObjectPath session, byte[] parameters, byte[] value, String contentType)
    • Secret

      public Secret(org.freedesktop.dbus.ObjectPath session, byte[] parameters, byte[] value, Charset charset)
  • Method Details

    • createContentType

      public static String createContentType(String mimeType, Charset charset)
    • createContentType

      public static String createContentType(Charset charset)
    • toBytes

      public static byte[] toBytes(CharSequence passphrase)
    • toBytes

      public static byte[] toBytes(char[] passphrase)
    • toChars

      public static char[] toChars(byte[] bytes)
    • clear

      public static void clear(byte[] bytes)
    • clear

      public static void clear(ByteBuffer buffer)
    • clear

      public static void clear(CharBuffer buffer)
    • clear

      public void clear()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getSession

      public org.freedesktop.dbus.ObjectPath getSession()
    • getSecretValue

      public byte[] getSecretValue()
    • getSecretParameters

      public byte[] getSecretParameters()
    • getContentType

      public String getContentType()
    • getMimeType

      public String getMimeType()
    • getCharset

      public Charset getCharset()