public class SingleSignOnInfo extends Object
SingleSignOnInfo
encapsulates meta information about a service's support for single
sign-on (SSO) integration
The data is expected to be like
<sso> <supported>true</supported> <ssoEnabledTest> { "equals": [ "config-type/sso.enabled.property_name", "true" ] } </ssoEnabledTest> </sso>
Constructor and Description |
---|
SingleSignOnInfo()
Default constructor
|
SingleSignOnInfo(Boolean supported,
String enabledConfiguration,
Boolean kerberosRequired)
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 |
---|---|
String |
getEnabledConfiguration()
Deprecated.
USe
getSsoEnabledTest() instead
Gets the configuration specification that can be used to determine if SSO has been enabled or not. |
String |
getSsoEnabledTest()
Gets the configuration specification that can be used to determine if SSO has
been enabled or not.
|
Boolean |
getSupported()
Gets the value whether if the service supports SSO integration.
|
boolean |
isKerberosRequired() |
boolean |
isSupported()
Tests whether the service supports SSO integration.
|
void |
setEnabledConfiguration(String enabledConfiguration)
Deprecated.
Use
setSsoEnabledTest(String) instead
Sets the configuration specification that can be used to determine if SSO has been enabled or not. |
void |
setKerberosRequired(Boolean kerberosRequired)
Sets the flag is Kerberos is required for SSO integration
|
void |
setSsoEnabledTest(String ssoEnabledTest)
Sets the configuration specification that can be used to determine if SSO has
been enabled or not.
|
void |
setSupported(Boolean supported)
Gets the value indicating whether the service supports SSO integration.
|
String |
toString()
String representation of this object
|
public SingleSignOnInfo()
public SingleSignOnInfo(Boolean supported, String enabledConfiguration, Boolean kerberosRequired)
supported
- true if SSO integration is supported; false otherwiseenabledConfiguration
- the configuration that can be used to determine if SSO integration has been enabledkerberosRequired
- true
if Kerberos is required for SSO integration; false
otherwisepublic boolean isSupported()
public Boolean getSupported()
null
indicates the value was not set
public void setSupported(Boolean supported)
supported
- true if SSO integration is supported; false if SSO integration is not supported; null if not specifiedpublic String getEnabledConfiguration()
getSsoEnabledTest()
instead
Gets the configuration specification that can be used to determine if SSO has been enabled or not.
public void setEnabledConfiguration(String enabledConfiguration)
setSsoEnabledTest(String)
instead
Sets the configuration specification that can be used to determine if SSO has been enabled or not.
enabledConfiguration
- a configuration specification (config-type/property_name)public String getSsoEnabledTest()
public void setSsoEnabledTest(String ssoEnabledTest)
enabledConfiguration
- a configuration specification (a valid JSON predicate)public boolean isKerberosRequired()
public void setKerberosRequired(Boolean kerberosRequired)
Copyright © 2022 Apache Software Foundation. All rights reserved.