public interface SecurityAccessController
This component abstracts access to security checks. Jetspeed supports two kinds of secured access:
Modifier and Type | Field and Description |
---|---|
static int |
CONSTRAINTS
Use the Jetspeed Security Constraints to make secure access checks
|
static int |
PERMISSIONS
Use the Java Security Policy (Permissions) to make secure access checks
|
Modifier and Type | Method and Description |
---|---|
boolean |
checkPortletAccess(PortletDefinition portlet,
int mask)
Checks access for the implicit active subject's access to the resource protected by the portlet permission
This is an abstraction introduced in 2.1 for Permission Manager implementations NOT
founded upon the a Java security policy.
|
int |
getSecurityMode()
Returns the configured security mode for this accessor
This component can be configured to make Java Security Policy permission checks
or Jetspeed Security Constraint checks
|
static final int PERMISSIONS
static final int CONSTRAINTS
boolean checkPortletAccess(PortletDefinition portlet, int mask)
Checks access for the implicit active subject's access to the resource protected by the portlet permission This is an abstraction introduced in 2.1 for Permission Manager implementations NOT founded upon the a Java security policy. If the Permission Manager is configured to run with Security Constraints, then a security constraint check is made. Otherwise, a standard Java Security permission check is made.
portlet
- The portlet to be checkedmask
- A mask JetspeedActions
such as view, editint getSecurityMode()
Copyright © 1999–2016 The Apache Software Foundation. All rights reserved.