Class CorsAuthorizer

    • Constructor Detail

      • CorsAuthorizer

        public CorsAuthorizer()
    • Method Detail

      • isAuthorized

        public boolean isAuthorized​(WebContext context,
                                    List<UserProfile> profiles)
        Description copied from interface: Authorizer
        Checks if the user profiles and / or the current web context are authorized.
        Specified by:
        isAuthorized in interface Authorizer<UserProfile>
        Parameters:
        context - the web context
        profiles - the user profiles
        Returns:
        if the access is authorized
      • getAllowOrigin

        public String getAllowOrigin()
      • setAllowOrigin

        public void setAllowOrigin​(String allowOrigin)
      • getExposeHeaders

        public String getExposeHeaders()
      • setExposeHeaders

        public void setExposeHeaders​(String exposeHeaders)
      • getMaxAge

        public int getMaxAge()
      • setMaxAge

        public void setMaxAge​(int maxAge)
      • getAllowCredentials

        public Boolean getAllowCredentials()
      • setAllowCredentials

        public void setAllowCredentials​(Boolean allowCredentials)
      • getAllowHeaders

        public String getAllowHeaders()
      • setAllowHeaders

        public void setAllowHeaders​(String allowHeaders)