SRJRCFrames
v0.1.296

de.schwarzrot.security
Class DefaultSecurityManager

java.lang.Object
  extended by de.schwarzrot.security.DefaultSecurityManager
All Implemented Interfaces:
UserNameProvider, SecurityManager

public class DefaultSecurityManager
extends Object
implements SecurityManager

Author:
Reinhard Mantey

Constructor Summary
DefaultSecurityManager()
           
 
Method Summary
 PermissionManager getPermissionManager()
           
 Principal getUser()
           
 String getUserName()
          return the name of the applications user.
 boolean isPrivilegedFor(String appName, String actionName, AccessMode mode)
           
 void login(String userName, String password)
           
 void logout()
           
 void setPermissionManager(PermissionManager permissionManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSecurityManager

public DefaultSecurityManager()
Method Detail

getPermissionManager

public PermissionManager getPermissionManager()

getUser

public Principal getUser()
Specified by:
getUser in interface SecurityManager

getUserName

public String getUserName()
Description copied from interface: UserNameProvider
return the name of the applications user. That username does not need to be the same as the operating system user.

Specified by:
getUserName in interface UserNameProvider
Returns:
a username

isPrivilegedFor

public boolean isPrivilegedFor(String appName,
                               String actionName,
                               AccessMode mode)
Specified by:
isPrivilegedFor in interface SecurityManager

login

public void login(String userName,
                  String password)
Specified by:
login in interface SecurityManager

logout

public void logout()
Specified by:
logout in interface SecurityManager

setPermissionManager

public void setPermissionManager(PermissionManager permissionManager)

SRJRCFrames
v0.1.296

hosted at
Find SRJRCFrames at SourceForge.net. Fast, secure and free:
           Open Source Software download
Submit a bug or request a feature

SRJRCFrames is published according to the GNU General Public License
Copyright 2005-2012 Reinhard Mantey - some rights reserved.