Style Intelligence v12.0

inetsoft.sree.viewer
Class SecurityDialog

java.lang.Object
  extended by inetsoft.sree.viewer.SecurityDialog
All Implemented Interfaces:
SecurityGui

public class SecurityDialog
extends Object
implements SecurityGui

This interface defines some common graphical user interface for handling the login, logout and changing password.


Constructor Summary
SecurityDialog()
           
 
Method Summary
protected static void add(JPanel pane, Component comp, GridBagConstraints gbc, int x, int y, int w, int h)
          Add component to the panel.
 String changePassword(Object parent)
          Change the entity password.
 Object login(Object parent)
          Used to authenticate the end user.
 boolean logout(Object parent)
          Ask uers some confirmation information.
 void setDefaultPassword(String passwd)
          Set the default password to show on the login dialog.
 void setDefaultUser(String user)
          Set the default user to show on the login dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityDialog

public SecurityDialog()
Method Detail

setDefaultUser

public void setDefaultUser(String user)
Set the default user to show on the login dialog.

Specified by:
setDefaultUser in interface SecurityGui

setDefaultPassword

public void setDefaultPassword(String passwd)
Set the default password to show on the login dialog.

Specified by:
setDefaultPassword in interface SecurityGui

login

public Object login(Object parent)
Used to authenticate the end user. It allows the user to enter some credential informaton.

Specified by:
login in interface SecurityGui
Returns:
the credential information about the entity or null if the user canceled the login action.

changePassword

public String changePassword(Object parent)
Change the entity password. It allows user to enter new password.

Specified by:
changePassword in interface SecurityGui
Returns:
the new password or null if the user canceled the action.

logout

public boolean logout(Object parent)
Ask uers some confirmation information.

Specified by:
logout in interface SecurityGui
Returns:
true if the user want to logout, false otherwise.

add

protected static void add(JPanel pane,
                          Component comp,
                          GridBagConstraints gbc,
                          int x,
                          int y,
                          int w,
                          int h)
Add component to the panel.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.