public class DefaultAuthorizationManager extends Object implements AuthorizationManager
| Modifier and Type | Field and Description |
|---|---|
static DefaultAuthorizationManager | INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean | canAccessResource(List<SingleConstraintMatch> constraints, Account account, ServletInfo servletInfo, javax.servlet.http.HttpServletRequest request, Deployment deployment) Tests if a user can access a given resource |
boolean | isUserInRole(String role, 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(String role, Account account, ServletInfo servletInfo, javax.servlet.http.HttpServletRequest request, Deployment deployment)
AuthorizationManagerisUserInRole in interface AuthorizationManagerrole - The role nameaccount - The user accountservletInfo - The servlet info for the target servletrequest - The servlet requestdeployment - The deploymentpublic boolean canAccessResource(List<SingleConstraintMatch> constraints, Account account, ServletInfo servletInfo, javax.servlet.http.HttpServletRequest request, Deployment deployment)
AuthorizationManagercanAccessResource in interface AuthorizationManagerconstraints - 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)
AuthorizationManagertransportGuarantee in interface AuthorizationManagercurrentConnectionGuarantee - The current connections transport guarantee typeconfiguredRequiredGuarentee - The transport guarantee type specified in the deployment descriptor/annotationsrequest - The requestCopyright © 2020 JBoss by Red Hat. All rights reserved.