Package org.freedesktop.secret
Class Secret
java.lang.Object
org.freedesktop.dbus.Container
org.freedesktop.dbus.Struct
org.freedesktop.secret.Secret
- All Implemented Interfaces:
AutoCloseable
public final class Secret extends org.freedesktop.dbus.Struct implements AutoCloseable
-
Field Summary
Fields Modifier and Type Field Description static StringTEXT_PLAINstatic StringTEXT_PLAIN_CHARSET_UTF_8 -
Constructor Summary
Constructors Constructor Description Secret(org.freedesktop.dbus.ObjectPath session, byte[] value)Secret(org.freedesktop.dbus.ObjectPath session, byte[] parameters, byte[] value)Secret(org.freedesktop.dbus.ObjectPath session, byte[] parameters, byte[] value, String contentType)Secret(org.freedesktop.dbus.ObjectPath session, byte[] parameters, byte[] value, Charset charset) -
Method Summary
Modifier and Type Method Description voidclear()static voidclear(byte[] bytes)static voidclear(ByteBuffer buffer)static voidclear(CharBuffer buffer)voidclose()static StringcreateContentType(String mimeType, Charset charset)static StringcreateContentType(Charset charset)CharsetgetCharset()StringgetContentType()StringgetMimeType()byte[]getSecretParameters()byte[]getSecretValue()org.freedesktop.dbus.ObjectPathgetSession()static byte[]toBytes(char[] passphrase)static byte[]toBytes(CharSequence passphrase)static char[]toChars(byte[] bytes)
-
Field Details
-
TEXT_PLAIN_CHARSET_UTF_8
- See Also:
- Constant Field Values
-
TEXT_PLAIN
- See Also:
- Constant Field Values
-
-
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
-