public class ServiceLdapInfo extends Object
ServiceLdapInfo
encapsulates meta information about a service's
support LDAP integration
The data is expected to be like
<ldap> <supported>true</supported> <ldapEnabledTest> { "equals": [ "service-site/ranger.authentication.method", "LDAP" ] } </ldapEnabledTest> </ldap>
Constructor and Description |
---|
ServiceLdapInfo()
Default constructor
|
ServiceLdapInfo(Boolean supported,
String ldapEnabledTest)
Constructor taking in values for supported and the configuration that can be
used to determine if it is enabled for not.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getLdapEnabledTest()
Gets the configuration specification that can be used to determine if LDAP
has been enabled or not.
|
Boolean |
getSupported()
Gets the value whether if the service supports LDAP integration.
|
int |
hashCode() |
boolean |
isSupported()
Tests whether the service supports LDAP integration.
|
void |
setLdapEnabledTest(String ldapEnabledTest)
Sets the configuration specification that can be used to determine if LDAP
has been enabled or not.
|
void |
setSupported(Boolean supported)
Sets the value indicating whether the service supports LDAP integration.
|
String |
toString() |
public ServiceLdapInfo()
public ServiceLdapInfo(Boolean supported, String ldapEnabledTest)
supported
- true if LDAP integration is supported; false otherwiseldapEnabledTest
- the configuration that can be used to determine if LDAP integration
has been enabledpublic Boolean getSupported()
null
indicates the value was not set
public boolean isSupported()
public void setSupported(Boolean supported)
supported
- true if LDAP integration is supported; false if LDAP integration is
not supported; null if not specifiedpublic String getLdapEnabledTest()
public void setLdapEnabledTest(String ldapEnabledTest)
ldapEnabledTest
- a configuration specification (a valid JSON predicate)Copyright © 2022 Apache Software Foundation. All rights reserved.