public class AmbariKerberosAuthenticationProperties extends Object
If Kerberos authentication is not enabled for Ambari ,
then there is no guarantee that any other property in this container is valid.kerberosAuthenticationEnabled == false
| Constructor and Description |
|---|
AmbariKerberosAuthenticationProperties() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAuthToLocalRules()
Gets the configured auth-to-local rule set.
|
List<UserAuthenticationType> |
getOrderedUserTypes()
Gets the list of
UserAuthenticationTypes (in preference order) to use to look up uer accounts in the Ambari database. |
String |
getSpnegoKeytabFilePath()
Gets the configured SPNEGO keytab file path.
|
String |
getSpnegoPrincipalName()
Gets the configured SPNEGO principal name.
|
boolean |
isKerberosAuthenticationEnabled()
Get whether Kerberos authentication is enabled or not.
|
void |
setAuthToLocalRules(String authToLocalRules)
Sets the configured auth-to-local rule set.
|
void |
setKerberosAuthenticationEnabled(boolean kerberosAuthenticationEnabled)
Sets whether Kerberos authentication is enabled or not.
|
void |
setSpnegoKeytabFilePath(String spnegoKeytabFilePath)
Sets the configured SPNEGO keytab file path.
|
void |
setSpnegoPrincipalName(String spnegoPrincipalName)
Sets the configured SPNEGO principal name.
|
public AmbariKerberosAuthenticationProperties()
public boolean isKerberosAuthenticationEnabled()
true if Kerberos authentication is enabled; otherwise falsepublic void setKerberosAuthenticationEnabled(boolean kerberosAuthenticationEnabled)
kerberosAuthenticationEnabled - true if Kerberos authentication is enabled; otherwise falsepublic String getSpnegoPrincipalName()
null if Kerberos
authentication is not enabled.null if Kerberos authentication is not enabledpublic void setSpnegoPrincipalName(String spnegoPrincipalName)
spnegoPrincipalName - a principal namepublic String getSpnegoKeytabFilePath()
null if Kerberos
authentication is not enabled.null if Kerberos authentication is not enabledpublic void setSpnegoKeytabFilePath(String spnegoKeytabFilePath)
spnegoKeytabFilePath - a keytab file pathpublic List<UserAuthenticationType> getOrderedUserTypes()
UserAuthenticationTypes (in preference order) to use to look up uer accounts in the Ambari database.UserAuthenticationTypespublic String getAuthToLocalRules()
null if Kerberos
authentication is not enabled.null if Kerberos authentication is not enabledpublic void setAuthToLocalRules(String authToLocalRules)
authToLocalRules - a string representing an auth-to-local rule setCopyright © 2022 Apache Software Foundation. All rights reserved.