|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.ssonet.examples.catalog.ConflictDialog
This dialog can be used by an application to show the user, that a security goal negotiation conflict has occured, and asks the user, whether he wants to prevent this conflict by accepting the communication partners setting, or not.
| Field Summary | |
(package private) javax.swing.JDialog |
dialog
|
| Constructor Summary | |
ConflictDialog(java.awt.Component parent,
java.lang.String securityGoal,
java.lang.String ownLevel,
java.lang.String withOrWithout)
Creates the conflict dialog. |
|
| Method Summary | |
void |
actionPerformed(java.awt.event.ActionEvent event)
Performs actions, when buttons in the dialog are pressed. |
static boolean |
getAnswer(java.awt.Component parent,
java.lang.String applicationName,
int securityGoal,
org.ssonet.net.ActionConfiguration ownConfig)
Shows the ConflictDialog and returns the users answer. |
static boolean |
getAnswer(int securityGoal,
org.ssonet.net.ActionConfiguration ownConfig)
Shows the ConflictDialog and returns the users answer. |
static boolean |
getAnswer(java.lang.String applicationName,
int securityGoal,
org.ssonet.net.ActionConfiguration ownConfig)
Shows the ConflictDialog and returns the users answer. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
javax.swing.JDialog dialog
| Constructor Detail |
public ConflictDialog(java.awt.Component parent,
java.lang.String securityGoal,
java.lang.String ownLevel,
java.lang.String withOrWithout)
getAnswer() methods.
parent - the parent component for this dialog.securityGoal - the security goal name, where the conflict occuredownLevel - the name of the users security goal settingwithOrWithout - "with", if the user should enforce the security goal; "without", if not.| Method Detail |
public static boolean getAnswer(int securityGoal,
org.ssonet.net.ActionConfiguration ownConfig)
ConflictDialog and returns the users answer.
securityGoal - the security goal ID of the conflicting security goal, @see SSONETConstants .ownConfig - the security goal configuration for the transaction
public static boolean getAnswer(java.lang.String applicationName,
int securityGoal,
org.ssonet.net.ActionConfiguration ownConfig)
ConflictDialog and returns the users answer.
applicationName - a string used as the first part of the dialogs titlesecurityGoal - the security goal ID of the conflicting security goal, @see SSONETConstants .ownConfig - the security goal configuration for the transaction
public static boolean getAnswer(java.awt.Component parent,
java.lang.String applicationName,
int securityGoal,
org.ssonet.net.ActionConfiguration ownConfig)
ConflictDialog and returns the users answer.
parent - the parent component for this dialog. The dialog is located relative to the parent component,applicationName - a string used as the first part of the dialogs titlesecurityGoal - the security goal ID of the conflicting security goal, @see SSONETConstants .ownConfig - the security goal configuration for the transaction
Window.setLocationRelativeTo(java.awt.Component)public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed in interface java.awt.event.ActionListenerevent - the ActionEvent generated by the buttons.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||