DefaultAuthorizationManager
public interface AuthorizationManager
Modifier and Type | Method | Description |
---|---|---|
boolean |
canAccessResource(java.util.List<SingleConstraintMatch> mappedConstraints,
io.undertow.security.idm.Account account,
ServletInfo servletInfo,
javax.servlet.http.HttpServletRequest request,
Deployment deployment) |
Tests if a user can access a given resource
|
boolean |
isUserInRole(java.lang.String roleName,
io.undertow.security.idm.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(java.lang.String roleName, io.undertow.security.idm.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(java.util.List<SingleConstraintMatch> mappedConstraints, io.undertow.security.idm.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 © 2018. All rights reserved.