Class X509AuthenticationProvider

java.lang.Object
org.apache.nifi.web.security.NiFiAuthenticationProvider
org.apache.nifi.web.security.x509.X509AuthenticationProvider
All Implemented Interfaces:
org.springframework.security.authentication.AuthenticationProvider

public class X509AuthenticationProvider extends NiFiAuthenticationProvider
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • PROXY_AUTHORIZABLE

      private static final Authorizable PROXY_AUTHORIZABLE
    • certificateIdentityProvider

      private X509IdentityProvider certificateIdentityProvider
    • authorizer

      private Authorizer authorizer
    • properties

      final NiFiProperties properties
  • Constructor Details

  • Method Details

    • authenticate

      public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication) throws org.springframework.security.core.AuthenticationException
      Throws:
      org.springframework.security.core.AuthenticationException
    • logProxyChain

      private void logProxyChain(NiFiUser chain)
    • createUser

      protected static NiFiUser createUser(String identity, Set<String> groups, Set<String> idpGroups, NiFiUser chain, String clientAddress, boolean isAnonymous)
      Returns a regular user populated with the provided values, or if the user should be anonymous, a well-formed instance of the anonymous user with the provided values.
      Parameters:
      identity - the user's identity
      chain - the proxied entities
      clientAddress - the requesting IP address
      isAnonymous - if true, an anonymous user will be returned (identity will be ignored)
      Returns:
      the populated user
    • supports

      public boolean supports(Class<?> authentication)