org.ssonet.net
Class ConflictDialog
java.lang.Object
|
+--org.ssonet.net.ConflictDialog
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.util.EventListener
- public class ConflictDialog
- extends java.lang.Object
- implements java.awt.event.ActionListener
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.
|
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,
ActionConfiguration ownConfig)
Shows the ConflictDialog and returns the users answer. |
static boolean |
getAnswer(int securityGoal,
ActionConfiguration ownConfig)
Shows the ConflictDialog and returns the users answer. |
static boolean |
getAnswer(java.lang.String applicationName,
int securityGoal,
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 |
ConflictDialog
public ConflictDialog(java.awt.Component parent,
java.lang.String securityGoal,
java.lang.String ownLevel,
java.lang.String withOrWithout)
- Creates the conflict dialog. This method should not be used by an application. An application should use
one of the
getAnswer() methods.
- Parameters:
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.
getAnswer
public static boolean getAnswer(int securityGoal,
ActionConfiguration ownConfig)
- Shows the
ConflictDialog and returns the users answer.
- Parameters:
securityGoal - the security goal ID of the conflicting security goal, @see SSONETConstants .ownConfiguration - the security goal configuration for the transaction
getAnswer
public static boolean getAnswer(java.lang.String applicationName,
int securityGoal,
ActionConfiguration ownConfig)
- Shows the
ConflictDialog and returns the users answer.
- Parameters:
applicationName - a string used as the first part of the dialogs titlesecurityGoal - the security goal ID of the conflicting security goal, @see SSONETConstants .ownConfiguration - the security goal configuration for the transaction
getAnswer
public static boolean getAnswer(java.awt.Component parent,
java.lang.String applicationName,
int securityGoal,
ActionConfiguration ownConfig)
- Shows the
ConflictDialog and returns the users answer.
- Parameters:
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 .ownConfiguration - the security goal configuration for the transaction- See Also:
JDialog.setLocationRelativeTo(java.awt.Component)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent event)
- Performs actions, when buttons in the dialog are pressed.
- Specified by:
actionPerformed in interface java.awt.event.ActionListener
- Parameters:
event - the ActionEvent generated by the buttons.