public interface AuthorizationManager
Modifier and Type | Method and Description |
---|---|
boolean | canAccessResource(List<SingleConstraintMatch> mappedConstraints, Account account, ServletInfo servletInfo, javax.servlet.http.HttpServletRequest request, Deployment deployment) Tests if a user can access a given resource |
boolean | isUserInRole(String roleName, Account account, ServletInfo servletInfo, javax.servlet.http.HttpServletRequest request, Deployment deployment) Tests if a user is in a given role |
TransportGuaranteeType | transportGuarantee(TransportGuaranteeType currentConnectionGuarantee, TransportGuaranteeType configuredRequiredGuarantee, javax.servlet.http.HttpServletRequest request) Determines the transport guarantee type |
boolean isUserInRole(String roleName, Account account, ServletInfo servletInfo, javax.servlet.http.HttpServletRequest request, Deployment deployment)
roleName
- The role nameaccount
- The user accountservletInfo
- The servlet info for the target servletrequest
- The servlet requestdeployment
- The deploymentboolean canAccessResource(List<SingleConstraintMatch> mappedConstraints, Account account, ServletInfo servletInfo, javax.servlet.http.HttpServletRequest request, Deployment deployment)
mappedConstraints
- The constraintsaccount
- The users accountservletInfo
- The servlet info for the target servletrequest
- The servlet requestdeployment
- The deploymentTransportGuaranteeType transportGuarantee(TransportGuaranteeType currentConnectionGuarantee, TransportGuaranteeType configuredRequiredGuarantee, javax.servlet.http.HttpServletRequest request)
currentConnectionGuarantee
- The current connections transport guarantee typeconfiguredRequiredGuarantee
- The transport guarantee type specified in the deployment descriptor/annotationsrequest
- The requestCopyright © 2015 JBoss by Red Hat. All rights reserved.