java.lang.Object
org.freedesktop.dbus.Container
org.freedesktop.dbus.Struct
de.swiesend.secretservice.Secret
- All Implemented Interfaces:
AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()static voidclear(byte[] bytes) static voidclear(ByteBuffer buffer) static voidclear(CharBuffer buffer) voidclose()static StringcreateContentType(String mimeType, Charset charset) static StringcreateContentType(Charset charset) byte[]byte[]org.freedesktop.dbus.ObjectPathstatic byte[]toBytes(char[] passphrase) static byte[]toBytes(CharSequence passphrase) static char[]toChars(byte[] bytes) Methods inherited from class org.freedesktop.dbus.Container
equals, getParameters, hashCode, toString
-
Field Details
-
TEXT_PLAIN_CHARSET_UTF_8
- See Also:
-
TEXT_PLAIN
- See Also:
-
-
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
-
createContentType
-
toBytes
-
toBytes
public static byte[] toBytes(char[] passphrase) -
toChars
public static char[] toChars(byte[] bytes) -
clear
public static void clear(byte[] bytes) -
clear
-
clear
-
clear
public void clear() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
getSession
public org.freedesktop.dbus.ObjectPath getSession() -
getSecretValue
public byte[] getSecretValue() -
getSecretParameters
public byte[] getSecretParameters() -
getContentType
-
getMimeType
-
getCharset
-