org.jboss.dashboard.security
Class DefaultAccessController
java.lang.Object
org.jboss.dashboard.security.DefaultAccessController
- All Implemented Interfaces:
- AccessController
@ApplicationScoped
public class DefaultAccessController
- extends Object
- implements AccessController
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAccessController
public DefaultAccessController()
getPolicy
public Policy getPolicy()
- Specified by:
getPolicy in interface AccessController
checkPermission
public void checkPermission(Subject usr,
Permission perm)
- Check the specified permission for the specified subject.
- Specified by:
checkPermission in interface AccessController
- Parameters:
usr - The subject for which permission is checked.perm - The permission to check.
- Throws:
SecurityException - if permission is not granted.
hasPermission
public boolean hasPermission(Subject usr,
Permission perm)
- Check the specified permission for the specified subject.
- Specified by:
hasPermission in interface AccessController
- Parameters:
usr - The subject for which permission is checked.perm - The permission to check.
Copyright © 2012-2015 JBoss by Red Hat. All Rights Reserved.