Class Prompt
- java.lang.Object
-
- org.freedesktop.secret.handlers.Messaging
-
- org.freedesktop.secret.interfaces.Prompt
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPrompt.Completed
-
Field Summary
-
Fields inherited from class org.freedesktop.secret.handlers.Messaging
connection, interfaceName, msg, objectPath, serviceName, sh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Prompt.Completedawait(org.freedesktop.dbus.ObjectPath prompt)Await the user interaction with the prompt.abstract voiddismiss()Dismiss the prompt.abstract voidprompt(String window_id)Perform the prompt.abstract voidprompt(org.freedesktop.dbus.ObjectPath prompt)Perform the prompt.-
Methods inherited from class org.freedesktop.secret.handlers.Messaging
getAllProperties, getConnection, getInterfaceName, getMessageHandler, getObjectPath, getPath, getProperty, getServiceName, getSignalHandler, send, send, setProperty
-
-
-
-
Method Detail
-
prompt
public abstract void prompt(String window_id)
Perform the prompt.- Parameters:
window_id- Platform specific window handle to use for showing the prompt.- See Also:
Prompt.Completed
-
prompt
public abstract void prompt(org.freedesktop.dbus.ObjectPath prompt) throws NoSuchObjectPerform the prompt.- Parameters:
prompt- Objectpath of the prompt.- Throws:
NoSuchObject- No such item or collection exists.- See Also:
Prompt.Completed
-
await
public abstract Prompt.Completed await(org.freedesktop.dbus.ObjectPath prompt) throws InterruptedException, NoSuchObject
Await the user interaction with the prompt. A prompt can either be dismissed or be completed successfully.- Parameters:
prompt- Objectpath of the prompt.- Returns:
- Completed or null if user input exceeds the default timeout of 300 seconds.
- Throws:
InterruptedException- A D-Bus signal failed.NoSuchObject- No such item or collection exists.- See Also:
Prompt.Completed
-
dismiss
public abstract void dismiss()
Dismiss the prompt.
-
-