Class 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  
    • 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)  
    • Field Detail

      • INSTANCE

        public static final io.undertow.servlet.api.AuthorizationManager INSTANCE
    • Constructor Detail

      • JACCAuthorizationManager

        public JACCAuthorizationManager()
    • 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 interface io.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 interface io.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 interface io.undertow.servlet.api.AuthorizationManager