public interface AuthorizationManager
Modifier and Type | Method and Description |
---|---|
boolean |
canAccessResource(List<SingleConstraintMatch> mappedConstraints,
Account account,
ServletInfo servletInfo,
HttpServletRequest request,
Deployment deployment)
Tests if a user can access a given resource
|
boolean |
isUserInRole(String roleName,
Account account,
ServletInfo servletInfo,
HttpServletRequest request,
Deployment deployment)
Tests if a user is in a given role
|
TransportGuaranteeType |
transportGuarantee(TransportGuaranteeType currentConnectionGuarantee,
TransportGuaranteeType configuredRequiredGuarantee,
HttpServletRequest request)
Determines the transport guarantee type
|
boolean isUserInRole(String roleName, Account account, ServletInfo servletInfo, 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, 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, HttpServletRequest request)
currentConnectionGuarantee
- The current connections transport guarantee typeconfiguredRequiredGuarantee
- The transport guarantee type specified in the deployment descriptor/annotationsrequest
- The requestCopyright © 2016 JBoss by Red Hat. All rights reserved.