@ApplicationScoped public class DefaultAccessController extends Object implements AccessController
Constructor and Description |
---|
DefaultAccessController() |
Modifier and Type | Method and Description |
---|---|
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.
|
public Policy getPolicy()
getPolicy
in interface AccessController
public void checkPermission(Subject usr, Permission perm)
checkPermission
in interface AccessController
usr
- The subject for which permission is checked.perm
- The permission to check.SecurityException
- if permission is not granted.public boolean hasPermission(Subject usr, Permission perm)
hasPermission
in interface AccessController
usr
- The subject for which permission is checked.perm
- The permission to check.Copyright © 2012-2014 JBoss by Red Hat. All Rights Reserved.