public class RequiredPermissionsInterceptor extends Object
Subject has all of the global permissions that are
specified via the RequiredPermissions annotation on the method to be invoked. If the method being invoked is
not annotated with RequiredPermissions or it has an empty list of permissions, this interceptor passes the
security check immediately. Otherwise, the method must have a Subject as its first parameter - that
Subject will be checked to see if it has all the permissions required. If it does not, or if there is no
Subject as the method's first parameter, this interceptor throws an exception and does not allow the method
to be invoked.| Constructor and Description |
|---|
RequiredPermissionsInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
Object |
checkRequiredPermissions(javax.interceptor.InvocationContext invocation_context)
Checks to ensure the method can be invoked.
|
public Object checkRequiredPermissions(javax.interceptor.InvocationContext invocation_context) throws Exception
invocation_context - the invocation contextException - if an error occurred further down the interceptor stackPermissionException - if the security check failsCopyright © 2008-2013 Red Hat, Inc.. All Rights Reserved.