public class X509AuthenticationProvider extends NiFiAuthenticationProvider
| Modifier and Type | Field and Description |
|---|---|
private Authorizer |
authorizer |
private X509IdentityProvider |
certificateIdentityProvider |
private static org.slf4j.Logger |
LOGGER |
(package private) NiFiProperties |
properties |
private static Authorizable |
PROXY_AUTHORIZABLE |
| Constructor and Description |
|---|
X509AuthenticationProvider(X509IdentityProvider certificateIdentityProvider,
Authorizer authorizer,
NiFiProperties nifiProperties) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.security.core.Authentication |
authenticate(org.springframework.security.core.Authentication authentication) |
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.
|
private void |
logProxyChain(NiFiUser chain) |
boolean |
supports(Class<?> authentication) |
getMappings, getUserGroups, mapIdentityprivate static final org.slf4j.Logger LOGGER
private static final Authorizable PROXY_AUTHORIZABLE
private X509IdentityProvider certificateIdentityProvider
private Authorizer authorizer
final NiFiProperties properties
public X509AuthenticationProvider(X509IdentityProvider certificateIdentityProvider, Authorizer authorizer, NiFiProperties nifiProperties)
public org.springframework.security.core.Authentication authenticate(org.springframework.security.core.Authentication authentication)
throws org.springframework.security.core.AuthenticationException
org.springframework.security.core.AuthenticationExceptionprivate void logProxyChain(NiFiUser chain)
protected static NiFiUser createUser(String identity, Set<String> groups, Set<String> idpGroups, NiFiUser chain, String clientAddress, boolean isAnonymous)
identity - the user's identitychain - the proxied entitiesclientAddress - the requesting IP addressisAnonymous - if true, an anonymous user will be returned (identity will be ignored)public boolean supports(Class<?> authentication)
Copyright © 2023 Apache NiFi Project. All rights reserved.