Class CasRoleBasedAuthorizer

  • All Implemented Interfaces:
    org.pac4j.core.authorization.authorizer.Authorizer<org.pac4j.core.profile.CommonProfile>

    public class CasRoleBasedAuthorizer
    extends org.pac4j.core.authorization.authorizer.RequireAnyRoleAuthorizer<org.pac4j.core.profile.CommonProfile>
    Since:
    5.2.0
    • Field Summary

      • Fields inherited from class org.pac4j.core.authorization.authorizer.AbstractRequireElementAuthorizer

        elements
    • Constructor Summary

      Constructors 
      Constructor Description
      CasRoleBasedAuthorizer​(java.util.List<java.lang.String> roles)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean isProfileAuthorized​(org.pac4j.core.context.WebContext context, org.pac4j.core.profile.CommonProfile profile)  
      • Methods inherited from class org.pac4j.core.authorization.authorizer.RequireAnyRoleAuthorizer

        check, requireAnyRole, requireAnyRole, requireAnyRole
      • Methods inherited from class org.pac4j.core.authorization.authorizer.AbstractRequireElementAuthorizer

        getElements, isAuthorized, setElements, setElements, setElements
      • Methods inherited from class org.pac4j.core.authorization.authorizer.ProfileAuthorizer

        handleError, isAllAuthorized, isAnyAuthorized
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CasRoleBasedAuthorizer

        public CasRoleBasedAuthorizer​(java.util.List<java.lang.String> roles)
    • Method Detail

      • isProfileAuthorized

        protected boolean isProfileAuthorized​(org.pac4j.core.context.WebContext context,
                                              org.pac4j.core.profile.CommonProfile profile)
        Overrides:
        isProfileAuthorized in class org.pac4j.core.authorization.authorizer.AbstractRequireAnyAuthorizer<java.lang.String,​org.pac4j.core.profile.CommonProfile>