public class KerberosProperties extends Object
| Modifier and Type | Field and Description |
|---|---|
private File |
kerberosConfigFile |
private Validator |
kerberosConfigValidator |
private PropertyDescriptor |
kerberosKeytab |
private PropertyDescriptor |
kerberosPassword |
private PropertyDescriptor |
kerberosPrincipal |
| Constructor and Description |
|---|
KerberosProperties(File kerberosConfigFile)
Instantiate a KerberosProperties object but keep in mind it is
effectively a singleton because the krb5.conf file needs to be set as a
system property which this constructor will take care of.
|
| Modifier and Type | Method and Description |
|---|---|
File |
getKerberosConfigFile() |
Validator |
getKerberosConfigValidator() |
PropertyDescriptor |
getKerberosKeytab() |
PropertyDescriptor |
getKerberosPassword() |
PropertyDescriptor |
getKerberosPrincipal() |
static List<ValidationResult> |
validatePrincipalWithKeytabOrPassword(String subject,
org.apache.hadoop.conf.Configuration config,
String principal,
String keytab,
String password,
ComponentLog logger) |
private final File kerberosConfigFile
private final Validator kerberosConfigValidator
private final PropertyDescriptor kerberosPrincipal
private final PropertyDescriptor kerberosKeytab
private final PropertyDescriptor kerberosPassword
public KerberosProperties(File kerberosConfigFile)
kerberosConfigFile - file of krb5.confpublic File getKerberosConfigFile()
public Validator getKerberosConfigValidator()
public PropertyDescriptor getKerberosPrincipal()
public PropertyDescriptor getKerberosKeytab()
public PropertyDescriptor getKerberosPassword()
public static List<ValidationResult> validatePrincipalWithKeytabOrPassword(String subject, org.apache.hadoop.conf.Configuration config, String principal, String keytab, String password, ComponentLog logger)
Copyright © 2020 Apache NiFi Project. All rights reserved.