public class WebAuthorizationHelper extends AbstractWebAuthorizationHelper
enableAudit
policyRegistration, 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, setEnableAudit
audit, authenticationAudit, authorizationAudit, getCallerPrincipal, getContextMap, getPolicyRegistration, getSecurityContext, setPolicyRegistration, setSecurityContext
public boolean checkResourcePermission(Map<String,Object> contextMap, ServletRequest request, ServletResponse response, Subject callerSubject, String contextID, String canonicalRequestURI)
AbstractWebAuthorizationHelper
checkResourcePermission
in class AbstractWebAuthorizationHelper
public boolean checkResourcePermission(Map<String,Object> contextMap, ServletRequest request, ServletResponse response, Subject callerSubject, String contextID, String canonicalRequestURI, List<String> roles)
AbstractWebAuthorizationHelper
checkResourcePermission
in class AbstractWebAuthorizationHelper
public boolean hasRole(String roleName, Principal principal, String servletName, Set<Principal> principalRoles, String contextID, Subject callerSubject)
AbstractWebAuthorizationHelper
hasRole
in class AbstractWebAuthorizationHelper
public boolean hasRole(String roleName, Principal principal, String servletName, Set<Principal> principalRoles, String contextID, Subject callerSubject, List<String> roles)
AbstractWebAuthorizationHelper
hasRole
in class AbstractWebAuthorizationHelper
public boolean hasUserDataPermission(Map<String,Object> contextMap, ServletRequest request, ServletResponse response, String contextID, Subject callerSubject)
AbstractWebAuthorizationHelper
hasUserDataPermission
in class AbstractWebAuthorizationHelper
public boolean hasUserDataPermission(Map<String,Object> contextMap, ServletRequest request, ServletResponse response, String contextID, Subject callerSubject, List<String> roles)
AbstractWebAuthorizationHelper
hasUserDataPermission
in class AbstractWebAuthorizationHelper
Copyright © 2021 JBoss by Red Hat. All rights reserved.