Class Secret

  • All Implemented Interfaces:
    AutoCloseable

    public final class Secret
    extends org.freedesktop.dbus.Struct
    implements AutoCloseable
    • Constructor Detail

      • 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 Detail

      • 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()
      • 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()