public class WebAuthorizationHelper extends AbstractWebAuthorizationHelper
enableAuditpolicyRegistration, securityContext| Constructor and Description |
|---|
WebAuthorizationHelper() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkResourcePermission(Map<String,Object> contextMap,
ServletRequest request,
ServletResponse response,
Subject callerSubject,
String contextID,
String canonicalRequestURI)
Validate that the caller has the permission to access a web resource
|
boolean |
checkResourcePermission(Map<String,Object> contextMap,
ServletRequest request,
ServletResponse response,
Subject callerSubject,
String contextID,
String canonicalRequestURI,
List<String> roles)
Validate that the caller has the permission to access a web resource
|
boolean |
hasRole(String roleName,
Principal principal,
String servletName,
Set<Principal> principalRoles,
String contextID,
Subject callerSubject)
Validate that the caller has the required role to access a resource
|
boolean |
hasRole(String roleName,
Principal principal,
String servletName,
Set<Principal> principalRoles,
String contextID,
Subject callerSubject,
List<String> roles)
Validate that the caller has the required role to access a resource
|
boolean |
hasUserDataPermission(Map<String,Object> contextMap,
ServletRequest request,
ServletResponse response,
String contextID,
Subject callerSubject)
Validate whether the transport constraints are met by the caller
|
boolean |
hasUserDataPermission(Map<String,Object> contextMap,
ServletRequest request,
ServletResponse response,
String contextID,
Subject callerSubject,
List<String> roles)
Validate whether the transport constraints are met by the caller
|
isEnableAudit, setEnableAuditaudit, authenticationAudit, authorizationAudit, getCallerPrincipal, getContextMap, getPolicyRegistration, getSecurityContext, setPolicyRegistration, setSecurityContextpublic boolean checkResourcePermission(Map<String,Object> contextMap, ServletRequest request, ServletResponse response, Subject callerSubject, String contextID, String canonicalRequestURI)
AbstractWebAuthorizationHelpercheckResourcePermission in class AbstractWebAuthorizationHelperpublic boolean checkResourcePermission(Map<String,Object> contextMap, ServletRequest request, ServletResponse response, Subject callerSubject, String contextID, String canonicalRequestURI, List<String> roles)
AbstractWebAuthorizationHelpercheckResourcePermission in class AbstractWebAuthorizationHelperpublic boolean hasRole(String roleName, Principal principal, String servletName, Set<Principal> principalRoles, String contextID, Subject callerSubject)
AbstractWebAuthorizationHelperhasRole in class AbstractWebAuthorizationHelperpublic boolean hasRole(String roleName, Principal principal, String servletName, Set<Principal> principalRoles, String contextID, Subject callerSubject, List<String> roles)
AbstractWebAuthorizationHelperhasRole in class AbstractWebAuthorizationHelperpublic boolean hasUserDataPermission(Map<String,Object> contextMap, ServletRequest request, ServletResponse response, String contextID, Subject callerSubject)
AbstractWebAuthorizationHelperhasUserDataPermission in class AbstractWebAuthorizationHelperpublic boolean hasUserDataPermission(Map<String,Object> contextMap, ServletRequest request, ServletResponse response, String contextID, Subject callerSubject, List<String> roles)
AbstractWebAuthorizationHelperhasUserDataPermission in class AbstractWebAuthorizationHelperCopyright © 2019 JBoss by Red Hat. All rights reserved.