com.sibvisions.rad.server.security
Class NoSecurityManager

java.lang.Object
  extended by com.sibvisions.rad.server.security.NoSecurityManager
All Implemented Interfaces:
ISecurityManager

public class NoSecurityManager
extends java.lang.Object
implements ISecurityManager

The NoSecurityManager is a dummy security manager that does nothing. Use it in environments where you don't need authentication.


Constructor Summary
NoSecurityManager()
          Creates a new instance of NoSecurityManager.
 
Method Summary
 void changePassword(ISession pSession)
          Changes the password for a user.
 IAccessController getAccessController(ISession pSession)
          Gets the access controller for a session.
 void logout(ISession pSession)
          Performs a manual or automatic logout.
 void release()
          Releases all used resources.
 void validateAuthentication(ISession pSession)
          Validates if a session has valid credentials to access an application.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoSecurityManager

public NoSecurityManager()
Creates a new instance of NoSecurityManager.

Method Detail

validateAuthentication

public void validateAuthentication(ISession pSession)
                            throws java.lang.Exception
Validates if a session has valid credentials to access an application.

Specified by:
validateAuthentication in interface ISecurityManager
Parameters:
pSession - the session which needs access
Throws:
java.lang.Exception - if the access is denied (invalid username or password, password needs to be changed, ...)

changePassword

public void changePassword(ISession pSession)
                    throws java.lang.Exception
Changes the password for a user.

Specified by:
changePassword in interface ISecurityManager
Parameters:
pSession - the session which wants to change the password
Throws:
java.lang.Exception - if it's not possible to change the password

logout

public void logout(ISession pSession)
Performs a manual or automatic logout.

Specified by:
logout in interface ISecurityManager
Parameters:
pSession - the session which performs the logout

getAccessController

public IAccessController getAccessController(ISession pSession)
                                      throws java.lang.Exception
Gets the access controller for a session. The controller handles the access to server side objects.

Specified by:
getAccessController in interface ISecurityManager
Parameters:
pSession - the session for which the access controller is needed
Returns:
the access controller or null if no access controller should be used
Throws:
java.lang.Exception - if the access controller could not be created

release

public void release()
Releases all used resources.

Specified by:
release in interface ISecurityManager


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.