public class WebSecurityManager extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CodeSource |
codesource |
static String |
CONSTRAINT_URI
Request path.
|
protected javax.security.jacc.PolicyConfiguration |
pc |
protected javax.security.jacc.PolicyConfigurationFactory |
pcf |
protected Policy |
policy |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkPermission(Permission perm,
Set principalSet) |
void |
destroy() |
static String |
getContextID(WebBundleDescriptor wbd) |
boolean |
hasNoConstrainedResources()
returns true to indicate that a policy check was made
and there were no constrained resources.
|
boolean |
hasResourcePermission(javax.servlet.http.HttpServletRequest httpsr)
Perform access control based on the
HttpServletRequest. |
boolean |
hasRoleRefPermission(String servletName,
String role,
Principal p) |
int |
hasUserDataPermission(javax.servlet.http.HttpServletRequest httpsr,
String uri,
String httpMethod)
if uri == null, determine if the connection characteristics of the
request satisfy the applicable policy.
|
void |
loadPolicyConfiguration() |
boolean |
permitAll(javax.servlet.http.HttpServletRequest req) |
void |
release()
Analogous to destroy, except does not remove links from Policy Context,
and does not remove context_id from role mapper factory.
|
public static final String CONSTRAINT_URI
protected Policy policy
protected javax.security.jacc.PolicyConfiguration pc
protected javax.security.jacc.PolicyConfigurationFactory pcf
protected CodeSource codesource
public static String getContextID(WebBundleDescriptor wbd)
public void loadPolicyConfiguration()
throws javax.security.jacc.PolicyContextException
javax.security.jacc.PolicyContextExceptionpublic boolean permitAll(javax.servlet.http.HttpServletRequest req)
protected boolean checkPermission(Permission perm, Set principalSet)
public boolean hasResourcePermission(javax.servlet.http.HttpServletRequest httpsr)
HttpServletRequest.
Return true if this constraint is satisfied and processing
should continue, or false otherwise.public boolean hasRoleRefPermission(String servletName, String role, Principal p)
public int hasUserDataPermission(javax.servlet.http.HttpServletRequest httpsr,
String uri,
String httpMethod)
public void destroy()
throws javax.security.jacc.PolicyContextException
javax.security.jacc.PolicyContextExceptionpublic void release()
throws javax.security.jacc.PolicyContextException
javax.security.jacc.PolicyContextExceptionpublic boolean hasNoConstrainedResources()
Copyright © 2017. All rights reserved.