|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.datacrow.core.security.SecurityCentre
public class SecurityCentre
The security center is the access point for all security related information. Note that the users logged on to the web application are not represented by this class.
Method Summary | |
---|---|
void |
changePassword(User user,
java.lang.String password)
Changes the password for the specified user. |
static SecurityCentre |
getInstance()
Retrieves the sole instance of this class |
java.util.Collection<DcModule> |
getManagedModules()
|
SecuredUser |
getUser()
Retrieves the currently logged on user. |
void |
initialize()
|
boolean |
isLoggedIn(SecuredUser su)
|
SecuredUser |
login(java.lang.String username,
java.lang.String password,
boolean web)
|
void |
logoff(User user)
|
boolean |
unsecureLogin()
Try to log in with the default user credentials (sa, empty password). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SecurityCentre getInstance()
public SecuredUser getUser()
public void changePassword(User user, java.lang.String password)
user
- password
- The new passwordpublic boolean unsecureLogin()
public boolean isLoggedIn(SecuredUser su)
public void logoff(User user)
public SecuredUser login(java.lang.String username, java.lang.String password, boolean web) throws SecurityException
SecurityException
public java.util.Collection<DcModule> getManagedModules()
public void initialize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |