Class Sso
java.lang.Object
swiss.trustbroker.federation.xmlconfig.Sso
- All Implemented Interfaces:
Serializable
XTB Single Sign On (SSO, SLO) configuration for an RP.
Note that when turned off you still use the element to declare an sloUrl/SloResponse to send LogoutResponse messages to in case LogoutRequest messages are sent to XTB.
Note that when turned off you still use the element to declare an sloUrl/SloResponse to send LogoutResponse messages to in case LogoutRequest messages are sent to XTB.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Sso.SsoBuilderbuilder()protected booleanbooleanDevice fingerprint check mode.Refresh IDM data for SSO - enable e.g.Configure a reference to an existing SSOGroup name.Notify other SSO participants about the ongoing logout.Serialize logout notifications in the order of theSloResponseelements.If an RP already is logged in with the first CP, the HRD screen can be skipped leading to the second participant automatically joining the detected SSO session for that CP.Shortcut forinthashCode()booleanEnable this configuration.booleanbooleanvoidsetEnabled(boolean enabled) Enable this configuration.voidsetFingerprintCheck(FingerprintCheck fingerprintCheck) Device fingerprint check mode.voidsetForceIdmRefresh(Boolean forceIdmRefresh) Refresh IDM data for SSO - enable e.g.voidsetGroupName(String groupName) Configure a reference to an existing SSOGroup name.voidsetLogoutNotifications(Boolean logoutNotifications) Notify other SSO participants about the ongoing logout.voidsetSerializeNotifications(Boolean serializeNotifications) Serialize logout notifications in the order of theSloResponseelements.voidsetSkipHrdWithSsoSession(Boolean skipHrdWithSsoSession) If an RP already is logged in with the first CP, the HRD screen can be skipped leading to the second participant automatically joining the detected SSO session for that CP.voidsetSloResponse(List<SloResponse> sloResponse) voidShortcut forbooleantoString()
-
Constructor Details
-
Sso
public Sso() -
Sso
public Sso(boolean enabled, String groupName, Boolean skipHrdWithSsoSession, Boolean forceIdmRefresh, FingerprintCheck fingerprintCheck, String sloUrl, Boolean logoutNotifications, Boolean serializeNotifications, List<SloResponse> sloResponse) Creates a newSsoinstance.- Parameters:
enabled- Enable this configuration.groupName- Configure a reference to an existing SSOGroup name. The groupName is required when SSO is enabled only.skipHrdWithSsoSession- If an RP already is logged in with the first CP, the HRD screen can be skipped leading to the second participant automatically joining the detected SSO session for that CP.forceIdmRefresh- Refresh IDM data for SSO - enable e.g. if an Access Request might be performed outside XTB.fingerprintCheck- Device fingerprint check mode.sloUrl- Shortcut forSloResponse
with this URL and defaults otherwise. Absolute or relative URL as forSloResponse
logoutNotifications- Notify other SSO participants about the ongoing logout. The participants need to have their notification endpoints configured using SloResponse elements.
Potentially breaking changes:- Since 1.12.0 the default was changed from false to true if there SloResponse notifications are configured.
serializeNotifications- Serialize logout notifications in the order of theSloResponseelements.
By default, they are fired in parallel.sloResponse-- Since:
- 1.14.0
- See Also:
-
-
Method Details
-
logoutNotificationsEnabled
public boolean logoutNotificationsEnabled() -
serializeNotifications
public boolean serializeNotifications() -
skipHrdWithSsoSession
public boolean skipHrdWithSsoSession() -
builder
-
isEnabled
public boolean isEnabled()Enable this configuration. -
getGroupName
Configure a reference to an existing SSOGroup name. The groupName is required when SSO is enabled only.- See Also:
-
getSkipHrdWithSsoSession
If an RP already is logged in with the first CP, the HRD screen can be skipped leading to the second participant automatically joining the detected SSO session for that CP. -
getForceIdmRefresh
Refresh IDM data for SSO - enable e.g. if an Access Request might be performed outside XTB. -
getFingerprintCheck
Device fingerprint check mode. -
getSloUrl
Shortcut forSloResponse
with this URL and defaults otherwise. Absolute or relative URL as forSloResponse
- See Also:
-
getLogoutNotifications
Notify other SSO participants about the ongoing logout. The participants need to have their notification endpoints configured using SloResponse elements.
Potentially breaking changes:- Since 1.12.0 the default was changed from false to true if there SloResponse notifications are configured.
-
getSerializeNotifications
Serialize logout notifications in the order of theSloResponseelements.
By default, they are fired in parallel.- Since:
- 1.14.0
-
getSloResponse
-
setEnabled
public void setEnabled(boolean enabled) Enable this configuration. -
setGroupName
Configure a reference to an existing SSOGroup name. The groupName is required when SSO is enabled only.- See Also:
-
setSkipHrdWithSsoSession
If an RP already is logged in with the first CP, the HRD screen can be skipped leading to the second participant automatically joining the detected SSO session for that CP. -
setForceIdmRefresh
Refresh IDM data for SSO - enable e.g. if an Access Request might be performed outside XTB. -
setFingerprintCheck
Device fingerprint check mode. -
setSloUrl
Shortcut forSloResponse
with this URL and defaults otherwise. Absolute or relative URL as forSloResponse
- See Also:
-
setLogoutNotifications
Notify other SSO participants about the ongoing logout. The participants need to have their notification endpoints configured using SloResponse elements.
Potentially breaking changes:- Since 1.12.0 the default was changed from false to true if there SloResponse notifications are configured.
-
setSerializeNotifications
Serialize logout notifications in the order of theSloResponseelements.
By default, they are fired in parallel.- Since:
- 1.14.0
-
setSloResponse
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-