de.schwarzrot.security
Class DefaultSecurityManager
java.lang.Object
de.schwarzrot.security.DefaultSecurityManager
- All Implemented Interfaces:
- UserNameProvider, SecurityManager
public class DefaultSecurityManager
- extends Object
- implements SecurityManager
- Author:
- Reinhard Mantey
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSecurityManager
public DefaultSecurityManager()
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)
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.