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 final io.undertow.servlet.api.AuthorizationManager
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      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