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
All Methods Static Methods Instance Methods Concrete Methods 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 Detail
-
TEXT_PLAIN_CHARSET_UTF_8
public static final String TEXT_PLAIN_CHARSET_UTF_8
- See Also:
- Constant Field Values
-
TEXT_PLAIN
public static final String TEXT_PLAIN
- See Also:
- Constant Field Values
-
-
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
-
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:
closein interfaceAutoCloseable
-
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()
-
-