@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 AccessControllerpublic void checkPermission(Subject usr, Permission perm)
checkPermission in interface AccessControllerusr - 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 AccessControllerusr - The subject for which permission is checked.perm - The permission to check.Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.