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
Fields Modifier and Type Field Description static io.undertow.servlet.api.AuthorizationManager
INSTANCE
-
Constructor Summary
Constructors Constructor Description JACCAuthorizationManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
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)
io.undertow.servlet.api.TransportGuaranteeType
transportGuarantee(io.undertow.servlet.api.TransportGuaranteeType currentConnGuarantee, io.undertow.servlet.api.TransportGuaranteeType configuredRequiredGuarantee, jakarta.servlet.http.HttpServletRequest request)
-
-
-
Method Detail
-
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:
isUserInRole
in 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:
canAccessResource
in 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:
transportGuarantee
in interfaceio.undertow.servlet.api.AuthorizationManager
-
-