Top Fields Constructors Methods
org.freedesktop.secret

public final Class Secret

extends Struct
implements AutoCloseable
Class Inheritance
All Implemented Interfaces
java.lang.AutoCloseable
Imports
org.freedesktop.dbus.ObjectPath, .Struct, org.freedesktop.dbus.annotations.Position, java.nio.ByteBuffer, .CharBuffer, java.nio.charset.Charset, .StandardCharsets, java.util.Arrays, .List, java.util.stream.Collectors

Field Summary

Modifier and TypeField and Description
private Charset
private static final String
private final String
private String
private final byte[]
private final ObjectPath
session

References Deprecated ObjectPath is deprecated or references (maybe indirectly) at least one deprecated element.
public static final String
public static final String
private final byte[]

Constructor Summary

AccessConstructor and Description
public
Secret(ObjectPath session, byte[] value)
References Deprecated ObjectPath is deprecated or references (maybe indirectly) at least one deprecated element.

public
Secret(ObjectPath session, byte[] parameters, byte[] value)
References Deprecated ObjectPath is deprecated or references (maybe indirectly) at least one deprecated element.

public
Secret(ObjectPath session, byte[] parameters, byte[] value, String contentType)
References Deprecated ObjectPath is deprecated or references (maybe indirectly) at least one deprecated element.

public
Secret(ObjectPath session, byte[] parameters, byte[] value, Charset charset)
References Deprecated ObjectPath is deprecated or references (maybe indirectly) at least one deprecated element.

Method Summary

Modifier and TypeMethod and Description
public static void
clear(byte[] bytes)

public static void
clear(ByteBuffer buffer)

public static void
clear(CharBuffer buffer)

public void
public void
close()

Implements java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources.

public static String
createContentType(String mimeType, Charset charset)

public static String
public Charset
public String
public String
public byte[]
public byte[]
public ObjectPath
getSession()
References Deprecated ObjectPath is deprecated or references (maybe indirectly) at least one deprecated element.

private void
parseContentType(String contentType)

public static byte[]
toBytes(CharSequence passphrase)

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

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

Field Detail

charsetback to summary
private Charset charset
CHARSETback to summary
private static final String CHARSET
contentTypeback to summary
private final String contentType
Annotations
@Position:3
mimeTypeback to summary
private String mimeType
parametersback to summary
private final byte[] parameters

Hides org.freedesktop.dbus.Container.parameters.

Annotations
@Position:1
sessionback to summary
private final ObjectPath session

References Deprecated

ObjectPath is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Annotations
@Position:0
TEXT_PLAINback to summary
public static final String TEXT_PLAIN
TEXT_PLAIN_CHARSET_UTF_8back to summary
public static final String TEXT_PLAIN_CHARSET_UTF_8
valueback to summary
private final byte[] value
Annotations
@Position:2

Constructor Detail

Secretback to summary
public Secret(ObjectPath session, byte[] value)

References Deprecated

ObjectPath is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Secretback to summary
public Secret(ObjectPath session, byte[] parameters, byte[] value)

References Deprecated

ObjectPath is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Secretback to summary
public Secret(ObjectPath session, byte[] parameters, byte[] value, String contentType)

References Deprecated

ObjectPath is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Secretback to summary
public Secret(ObjectPath session, byte[] parameters, byte[] value, Charset charset)

References Deprecated

ObjectPath is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

Method Detail

clearback to summary
public static void clear(byte[] bytes)
clearback to summary
public static void clear(ByteBuffer buffer)
clearback to summary
public static void clear(CharBuffer buffer)
clearback to summary
public void clear()
closeback to summary
public void close()

Implements java.lang.AutoCloseable.close.

Doc from java.lang.AutoCloseable.close.

Closes this resource, relinquishing any underlying resources. This method is invoked automatically on objects managed by the try-with-resources statement.

Annotations
@Override
createContentTypeback to summary
public static String createContentType(String mimeType, Charset charset)
createContentTypeback to summary
public static String createContentType(Charset charset)
getCharsetback to summary
public Charset getCharset()
getContentTypeback to summary
public String getContentType()
getMimeTypeback to summary
public String getMimeType()
getSecretParametersback to summary
public byte[] getSecretParameters()
getSecretValueback to summary
public byte[] getSecretValue()
getSessionback to summary
public ObjectPath getSession()

References Deprecated

ObjectPath is deprecated or references (maybe indirectly) at least one deprecated element.

See corresponding docs for further information.

parseContentTypeback to summary
private void parseContentType(String contentType)
toBytesback to summary
public static byte[] toBytes(CharSequence passphrase)
toBytesback to summary
public static byte[] toBytes(char[] passphrase)
toCharsback to summary
public static char[] toChars(byte[] bytes)