Class NegotiateSecurityFilterProvider

    • Constructor Detail

      • NegotiateSecurityFilterProvider

        public NegotiateSecurityFilterProvider​(IWindowsAuthProvider newAuthProvider)
        Instantiates a new negotiate security filter provider.
        Parameters:
        newAuthProvider - the new auth provider
    • Method Detail

      • getProtocols

        public List<String> getProtocols()
        Gets the protocols.
        Returns:
        the protocols
      • setProtocols

        public void setProtocols​(List<String> values)
        Sets the protocols.
        Parameters:
        values - the new protocols
      • sendUnauthorized

        public void sendUnauthorized​(javax.servlet.http.HttpServletResponse response)
        Description copied from interface: SecurityFilterProvider
        Add authentication method headers.
        Specified by:
        sendUnauthorized in interface SecurityFilterProvider
        Parameters:
        response - Http Response.
      • isPrincipalException

        public boolean isPrincipalException​(javax.servlet.http.HttpServletRequest request)
        Description copied from interface: SecurityFilterProvider
        Returns true if despite having a principal authentication needs to happen.
        Specified by:
        isPrincipalException in interface SecurityFilterProvider
        Parameters:
        request - Http Request.
        Returns:
        True if authentication is required.
      • doFilter

        public IWindowsIdentity doFilter​(javax.servlet.http.HttpServletRequest request,
                                         javax.servlet.http.HttpServletResponse response)
                                  throws IOException
        Description copied from interface: SecurityFilterProvider
        Execute filter.
        Specified by:
        doFilter in interface SecurityFilterProvider
        Parameters:
        request - Http Servlet Request.
        response - Http Servlet Response.
        Returns:
        A Windows identity in case authentication completed or NULL if not. Thrown exceptions should be caught and processed as 401 Access Denied.
        Throws:
        IOException - on doFilter.
      • isSecurityPackageSupported

        public boolean isSecurityPackageSupported​(String securityPackage)
        Description copied from interface: SecurityFilterProvider
        Tests whether a specific security package is supported.
        Specified by:
        isSecurityPackageSupported in interface SecurityFilterProvider
        Parameters:
        securityPackage - Security package.
        Returns:
        True if the security package is supported, false otherwise.