Class CsrfAuthorizer

    • Constructor Detail

      • CsrfAuthorizer

        public CsrfAuthorizer()
      • CsrfAuthorizer

        public CsrfAuthorizer​(String parameterName,
                              String headerName)
      • CsrfAuthorizer

        public CsrfAuthorizer​(String parameterName,
                              String headerName,
                              boolean checkAllRequests)
    • 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
      • getParameterName

        public String getParameterName()
      • setParameterName

        public void setParameterName​(String parameterName)
      • getHeaderName

        public String getHeaderName()
      • setHeaderName

        public void setHeaderName​(String headerName)
      • isCheckAllRequests

        public boolean isCheckAllRequests()
      • setCheckAllRequests

        public void setCheckAllRequests​(boolean checkAllRequests)