AuthorizationManager
public class DefaultAuthorizationManager extends java.lang.Object implements AuthorizationManager
Modifier and Type | Field | Description |
---|---|---|
static DefaultAuthorizationManager |
INSTANCE |
Modifier and Type | Method | Description |
---|---|---|
boolean |
canAccessResource(java.util.List<SingleConstraintMatch> constraints,
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 role,
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 configuredRequiredGuarentee,
javax.servlet.http.HttpServletRequest request) |
Determines the transport guarantee type
|
public static final DefaultAuthorizationManager INSTANCE
public boolean isUserInRole(java.lang.String role, io.undertow.security.idm.Account account, ServletInfo servletInfo, javax.servlet.http.HttpServletRequest request, Deployment deployment)
AuthorizationManager
isUserInRole
in interface AuthorizationManager
role
- The role nameaccount
- The user accountservletInfo
- The servlet info for the target servletrequest
- The servlet requestdeployment
- The deploymentpublic boolean canAccessResource(java.util.List<SingleConstraintMatch> constraints, io.undertow.security.idm.Account account, ServletInfo servletInfo, javax.servlet.http.HttpServletRequest request, Deployment deployment)
AuthorizationManager
canAccessResource
in interface AuthorizationManager
constraints
- The constraintsaccount
- The users accountservletInfo
- The servlet info for the target servletrequest
- The servlet requestdeployment
- The deploymentpublic TransportGuaranteeType transportGuarantee(TransportGuaranteeType currentConnectionGuarantee, TransportGuaranteeType configuredRequiredGuarentee, javax.servlet.http.HttpServletRequest request)
AuthorizationManager
transportGuarantee
in interface AuthorizationManager
currentConnectionGuarantee
- The current connections transport guarantee typeconfiguredRequiredGuarentee
- The transport guarantee type specified in the deployment descriptor/annotationsrequest
- The requestCopyright © 2018. All rights reserved.