|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.sree.security.SecurityModule
public class SecurityModule
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 |
|---|
public SecurityModule(Object parent,
RepletRepository engine,
String handlercls)
throws Exception
SecurityModule object
parent - object invoking this classengine - repository server proxy.handlercls - handles all the gui
Exception| Method Detail |
|---|
public static SecurityModule getSecurityModule(Object parent,
RepletRepository engine,
String handlercls)
throws Exception
SecurityModule instacne
parent - object invoking this classengine - repository server proxy.handlercls - handles all the gui
SecurityModule object
Exceptionpublic boolean isCancelled()
public void setDefaultUser(String user)
public void setDefaultPassword(String passwd)
public boolean login()
public boolean changePassword(Principal principal)
principal - represents an entity
public void abort()
public void logout(Principal principal)
principal - represents an entitypublic Principal getPrincipal()
SRPrincipal instance bound to this client
SRPrincipal objectpublic void setPrincipal(Principal principal)
SRPrincipal instance bound to this client
principal - represents an entity
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||