Class JACCAuthorizationManager
java.lang.Object
org.wildfly.extension.undertow.security.jacc.JACCAuthorizationManager
- All Implemented Interfaces:
io.undertow.servlet.api.AuthorizationManager
public class JACCAuthorizationManager
extends Object
implements io.undertow.servlet.api.AuthorizationManager
An implementation of AuthorizationManager that uses Jakarta Authorization permissions to grant or deny access to web resources.
- Author:
- Stefan Guilhen
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final io.undertow.servlet.api.AuthorizationManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanAccessResource(List<io.undertow.servlet.api.SingleConstraintMatch> constraints, io.undertow.security.idm.Account account, io.undertow.servlet.api.ServletInfo servletInfo, jakarta.servlet.http.HttpServletRequest request, io.undertow.servlet.api.Deployment deployment) booleanisUserInRole(String roleName, io.undertow.security.idm.Account account, io.undertow.servlet.api.ServletInfo servletInfo, jakarta.servlet.http.HttpServletRequest request, io.undertow.servlet.api.Deployment deployment) io.undertow.servlet.api.TransportGuaranteeTypetransportGuarantee(io.undertow.servlet.api.TransportGuaranteeType currentConnGuarantee, io.undertow.servlet.api.TransportGuaranteeType configuredRequiredGuarantee, jakarta.servlet.http.HttpServletRequest request)
-
Field Details
-
INSTANCE
public static final io.undertow.servlet.api.AuthorizationManager INSTANCE
-
-
Constructor Details
-
JACCAuthorizationManager
public JACCAuthorizationManager()
-
-
Method Details
-
isUserInRole
public boolean isUserInRole(String roleName, io.undertow.security.idm.Account account, io.undertow.servlet.api.ServletInfo servletInfo, jakarta.servlet.http.HttpServletRequest request, io.undertow.servlet.api.Deployment deployment) - Specified by:
isUserInRolein interfaceio.undertow.servlet.api.AuthorizationManager
-
canAccessResource
public boolean canAccessResource(List<io.undertow.servlet.api.SingleConstraintMatch> constraints, io.undertow.security.idm.Account account, io.undertow.servlet.api.ServletInfo servletInfo, jakarta.servlet.http.HttpServletRequest request, io.undertow.servlet.api.Deployment deployment) - Specified by:
canAccessResourcein interfaceio.undertow.servlet.api.AuthorizationManager
-
transportGuarantee
public io.undertow.servlet.api.TransportGuaranteeType transportGuarantee(io.undertow.servlet.api.TransportGuaranteeType currentConnGuarantee, io.undertow.servlet.api.TransportGuaranteeType configuredRequiredGuarantee, jakarta.servlet.http.HttpServletRequest request) - Specified by:
transportGuaranteein interfaceio.undertow.servlet.api.AuthorizationManager
-