Package org.freedesktop.secret
Class Prompt
- java.lang.Object
-
- org.freedesktop.secret.handlers.Messaging
-
- org.freedesktop.secret.interfaces.Prompt
-
- org.freedesktop.secret.Prompt
-
- All Implemented Interfaces:
org.freedesktop.dbus.interfaces.DBusInterface
public class Prompt extends Prompt
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.freedesktop.secret.interfaces.Prompt
Prompt.Completed
-
-
Field Summary
Fields Modifier and Type Field Description static List<Class<? extends org.freedesktop.dbus.messages.DBusSignal>>signals-
Fields inherited from class org.freedesktop.secret.handlers.Messaging
connection, interfaceName, msg, objectPath, serviceName, sh
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Prompt.Completedawait(org.freedesktop.dbus.ObjectPath path)Await the user interaction with the prompt.voiddismiss()Dismiss the prompt.StringgetObjectPath()booleanisRemote()voidprompt(String window_id)Perform the prompt.voidprompt(org.freedesktop.dbus.ObjectPath prompt)Perform the prompt.-
Methods inherited from class org.freedesktop.secret.handlers.Messaging
getAllProperties, getConnection, getInterfaceName, getMessageHandler, getPath, getProperty, getServiceName, getSignalHandler, send, send, setProperty
-
-
-
-
Constructor Detail
-
Prompt
public Prompt(Service service)
-
-
Method Detail
-
prompt
public void prompt(String window_id)
Description copied from class:PromptPerform the prompt.- Specified by:
promptin classPrompt- Parameters:
window_id- Platform specific window handle to use for showing the prompt.- See Also:
Prompt.Completed
-
prompt
public void prompt(org.freedesktop.dbus.ObjectPath prompt) throws NoSuchObjectDescription copied from class:PromptPerform the prompt.- Specified by:
promptin classPrompt- Parameters:
prompt- Objectpath of the prompt.- Throws:
NoSuchObject- No such item or collection exists.- See Also:
Prompt.Completed
-
await
public Prompt.Completed await(org.freedesktop.dbus.ObjectPath path)
Description copied from class:PromptAwait the user interaction with the prompt. A prompt can either be dismissed or be completed successfully.- Specified by:
awaitin classPrompt- Parameters:
path- Objectpath of the prompt.- Returns:
- Completed or null if user input exceeds the default timeout of 300 seconds.
- See Also:
Prompt.Completed
-
dismiss
public void dismiss()
Description copied from class:PromptDismiss the prompt.
-
isRemote
public boolean isRemote()
-
getObjectPath
public String getObjectPath()
- Specified by:
getObjectPathin interfaceorg.freedesktop.dbus.interfaces.DBusInterface- Overrides:
getObjectPathin classMessaging
-
-