Dashboard Builder Security 6.0.2-SNAPSHOT

org.jboss.dashboard.security
Class DefaultAccessController

java.lang.Object
  extended by org.jboss.dashboard.security.DefaultAccessController
All Implemented Interfaces:
AccessController

@ApplicationScoped
public class DefaultAccessController
extends Object
implements AccessController


Constructor Summary
DefaultAccessController()
           
 
Method Summary
 void checkPermission(Subject usr, Permission perm)
          Check the specified permission for the specified subject.
 Policy getPolicy()
           
 boolean hasPermission(Subject usr, Permission perm)
          Check the specified permission for the specified subject.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultAccessController

public DefaultAccessController()
Method Detail

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.

Dashboard Builder Security 6.0.2-SNAPSHOT

Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.