com.sibvisions.rad.server.security
Class XmlSecurityManager
java.lang.Object
com.sibvisions.rad.server.security.AbstractSecurityManager
com.sibvisions.rad.server.security.XmlSecurityManager
- All Implemented Interfaces:
- ISecurityManager, IPasswordValidator
public class XmlSecurityManager
- extends AbstractSecurityManager
The XmlSecurityManager uses a xml file to authenticate users. It requires
the following information:
- usersfile (the file with all users)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlSecurityManager
public XmlSecurityManager()
validateAuthentication
public void validateAuthentication(ISession pSession)
throws Exception
- Validates if a session has valid credentials to access an application.
- Parameters:
pSession - the session which needs access
- Throws:
Exception - if the access is denied (invalid username or password, password needs to be changed, ...)
changePassword
public void changePassword(ISession pSession)
throws Exception
- Changes the password for a user.
- Parameters:
pSession - the session which wants to change the password
- Throws:
Exception - if it's not possible to change the password
logout
public void logout(ISession pSession)
- Performs a manual or automatic logout.
- Parameters:
pSession - the session which performs the logout
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.