Style Intelligence v12.0

inetsoft.sree.security
Class SecurityModule

java.lang.Object
  extended by inetsoft.sree.security.SecurityModule

public class SecurityModule
extends Object

This class authenticates end users with a principal and credential. The principal is a SRPrincipal, which implements java. security.Principal, and wraps the user id and a secure id in it. The credential is an Object, which may be an instance of a DefaultTicket or Certificate, or any other object.


Constructor Summary
SecurityModule(Object parent, RepletRepository engine, String handlercls)
          Create a SecurityModule object
 
Method Summary
 void abort()
          This method is called if the authentication fails, it cleans up all the state that was originally saved.
 boolean changePassword(Principal principal)
          Change the user password
 Principal getPrincipal()
          Get the SRPrincipal instance bound to this client
static SecurityModule getSecurityModule(Object parent, RepletRepository engine, String handlercls)
          Get SecurityModule instacne
 boolean isCancelled()
          Check if login is cancelled.
 boolean login()
          Authenticate the end user
 void logout(Principal principal)
          Log the user out of the system
 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.
 void setPrincipal(Principal principal)
          Set the SRPrincipal instance bound to this client
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityModule

public SecurityModule(Object parent,
                      RepletRepository engine,
                      String handlercls)
               throws Exception
Create a SecurityModule object

Parameters:
parent - object invoking this class
engine - repository server proxy.
handlercls - handles all the gui
Throws:
Exception
Method Detail

getSecurityModule

public static SecurityModule getSecurityModule(Object parent,
                                               RepletRepository engine,
                                               String handlercls)
                                        throws Exception
Get SecurityModule instacne

Parameters:
parent - object invoking this class
engine - repository server proxy.
handlercls - handles all the gui
Returns:
a SecurityModule object
Throws:
Exception

isCancelled

public boolean isCancelled()
Check if login is cancelled.


setDefaultUser

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


setDefaultPassword

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


login

public boolean login()
Authenticate the end user

Returns:
true if authenticated successfully

changePassword

public boolean changePassword(Principal principal)
Change the user password

Parameters:
principal - represents an entity
Returns:
true if the password change succeeded

abort

public void abort()
This method is called if the authentication fails, it cleans up all the state that was originally saved.


logout

public void logout(Principal principal)
Log the user out of the system

Parameters:
principal - represents an entity

getPrincipal

public Principal getPrincipal()
Get the SRPrincipal instance bound to this client

Returns:
a SRPrincipal object

setPrincipal

public void setPrincipal(Principal principal)
Set the SRPrincipal instance bound to this client

Parameters:
principal - represents an entity

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