public class KerberosProperties extends Object
| Modifier and Type | Field and Description |
|---|---|
private File |
kerberosConfigFile |
private Validator |
kerberosConfigValidator |
private PropertyDescriptor |
kerberosKeytab |
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 |
getKerberosPrincipal() |
static List<ValidationResult> |
validatePrincipalAndKeytab(String subject,
org.apache.hadoop.conf.Configuration config,
String principal,
String keytab,
ComponentLog logger) |
private final File kerberosConfigFile
private final Validator kerberosConfigValidator
private final PropertyDescriptor kerberosPrincipal
private final PropertyDescriptor kerberosKeytab
public KerberosProperties(File kerberosConfigFile)
kerberosConfigFile - file of krb5.confpublic File getKerberosConfigFile()
public Validator getKerberosConfigValidator()
public PropertyDescriptor getKerberosPrincipal()
public PropertyDescriptor getKerberosKeytab()
public static List<ValidationResult> validatePrincipalAndKeytab(String subject, org.apache.hadoop.conf.Configuration config, String principal, String keytab, ComponentLog logger)
Copyright © 2018 Apache NiFi Project. All rights reserved.