Top Fields Methods
org.freedesktop.secret.interfaces

public Interface Item

extends DBusInterface
Known Direct Implementers
org.freedesktop.secret.Item
Annotations
@DBusInterfaceName:org.freedesktop.Secret.Item
Imports
org.freedesktop.dbus.ObjectPath, org.freedesktop.dbus.annotations.DBusInterfaceName, org.freedesktop.dbus.interfaces.DBusInterface, org.freedesktop.dbus.types.UInt64, org.freedesktop.secret.Secret, .Static, java.util.Map

Field Summary

Modifier and TypeField and Description
public static final String
ATTRIBUTES

The key of the D-Bus properties for the attributes of an item.

public static final String
LABEL

The key of of the D-Bus properties for the label of an item.

Method Summary

Modifier and TypeMethod and Description
public UInt64

Returns:

The unix time when the item was created.
created
()

public ObjectPath

Returns:

Prompt — A prompt objectpath, or the special value '/' if no prompt is necessary.
delete
()
References Deprecated ObjectPath is deprecated or references (maybe indirectly) at least one deprecated element.

Delete this item.

public Map<String, String>

Returns:

The attributes of the item.
getAttributes
()

The lookup attributes for this item.

public String

Returns:

The displayable label of this collection.

Note

The displayable label can differ from the actual name of a collection.

getLabel
()

Label is a D-Bus Property.

public Secret

Returns:

secret — The secret retrieved.
getSecret
(ObjectPath
The session to use to encode the secret.
session
)
References Deprecated ObjectPath is deprecated or references (maybe indirectly) at least one deprecated element.

Retrieve the secret for this item.

public String

Returns:

The "xdg:schema" of the item attributes.
getType
()

public boolean

Returns:

Whether the item is locked and requires authentication, or not.
isLocked
()

public UInt64

Returns:

The unix time when the item was last modified.
modified
()

public void
setAttributes(Map<String, String>
The attributes of the item.
attributes
)

The lookup attributes for this item.

public void
setLabel(String
The displayable label of this collection.

Note

The displayable label can differ from the actual name of a collection.

label
)

Label is a D-Bus Property.

public void
setSecret(Secret
The secret to set, encoded for the included session.
secret
)

Set the secret for this item.

Inherited from org.freedesktop.dbus.interfaces.DBusInterface:
getObjectPathisRemote

Field Detail

ATTRIBUTESback to summary
public static final String ATTRIBUTES

The key of the D-Bus properties for the attributes of an item.

LABELback to summary
public static final String LABEL

The key of of the D-Bus properties for the label of an item.

Method Detail

createdback to summary
public UInt64 created()
Returns:UInt64

The unix time when the item was created.

deleteback to summary
public ObjectPath delete()

References Deprecated

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

See corresponding docs for further information.

Delete this item.

Returns:ObjectPath

Prompt — A prompt objectpath, or the special value '/' if no prompt is necessary.

getAttributesback to summary
public Map<String, String> getAttributes()

The lookup attributes for this item. Attributes is a D-Bus Property.

It is managed by using the org.freedesktop.DBus.Properties interface.

Returns:Map<String, String>

The attributes of the item.

getLabelback to summary
public String getLabel()

Label is a D-Bus Property.

It is managed by using the org.freedesktop.DBus.Properties interface.

Returns:String

The displayable label of this collection.

Note

The displayable label can differ from the actual name of a collection.

getSecretback to summary
public Secret getSecret(ObjectPath session)

References Deprecated

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

See corresponding docs for further information.

Retrieve the secret for this item.

Parameters
session:ObjectPath

The session to use to encode the secret.

Returns:Secret

secret — The secret retrieved.

getTypeback to summary
public String getType()
Returns:String

The "xdg:schema" of the item attributes.

isLockedback to summary
public boolean isLocked()
Returns:boolean

Whether the item is locked and requires authentication, or not.

modifiedback to summary
public UInt64 modified()
Returns:UInt64

The unix time when the item was last modified.

setAttributesback to summary
public void setAttributes(Map<String, String> attributes)

The lookup attributes for this item. Attributes is a D-Bus Property.

It is managed by using the org.freedesktop.DBus.Properties interface.

Parameters
attributes:Map<String, String>

The attributes of the item.

setLabelback to summary
public void setLabel(String label)

Label is a D-Bus Property.

It is managed by using the org.freedesktop.DBus.Properties interface.

Parameters
label:String

The displayable label of this collection.

Note

The displayable label can differ from the actual name of a collection.

setSecretback to summary
public void setSecret(Secret secret)

Set the secret for this item.

Parameters
secret:Secret

The secret to set, encoded for the included session.