Class ClaimsProvider.ClaimsProviderBuilder
java.lang.Object
swiss.trustbroker.federation.xmlconfig.ClaimsProvider.ClaimsProviderBuilder
- Enclosing class:
ClaimsProvider
-
Method Summary
Modifier and TypeMethodDescriptionShow this banner above the HRD selection area if tile is enabled.build()Deprecated.removeclientNetworks(String clientNetworks) A comma separated list of network identifiers.HTML color code identifying the CP on small screens.description(String description) Text displayed in the CP tile.Allow pre-configuration of ClaimsProviderMappings with enabled or disabled ClaimsParty in profiles and only pick them per relying party in setup.hrdHintAlias(String hrdHintAlias) The HRD hint parameter sent by the RP is matched against the following attributes of the ClaimsProvider element.References the issuer ID of the CP.Image displayed in the HRD large view.Name displayed to the user directly.noticeClaimsProviders(List<String> noticeClaimsProviders) The list of ClaimsProviders namenoticeEnabled(Boolean noticeEnabled) Notice enablednoticeMaxAgeSec(Integer noticeMaxAgeSec) Notice max ageIndicates the order of display in the UI.relyingPartyAlias(String relyingPartyAlias) By providing a relying party ID on the HRD declaration, it's not necessary anymore to copy and paste entire RP definition files just to be able to automatically selecting an RP without showing a HRD selection screen.A usually two-character code identifying the CP on small screens.Title for the CP tile and help item.toString()
-
Method Details
-
id
References the issuer ID of the CP.- Returns:
this.
-
enabled
Allow pre-configuration of ClaimsProviderMappings with enabled or disabled ClaimsParty in profiles and only pick them per relying party in setup. Default: Unset value signals an enabled claims party and ignoring entries with the same id in the profile.- Returns:
this.- Since:
- 1.9.0
-
clientNetworks
A comma separated list of network identifiers. When computing the HRD screen the incoming loadbalancer HTTP Header Client_Network (is considered to filter out CPs that are not defined on the incoming network, mainly:- INTRANET (intranet)
- INTERNET (external networks)
- Returns:
this.
-
relyingPartyAlias
By providing a relying party ID on the HRD declaration, it's not necessary anymore to copy and paste entire RP definition files just to be able to automatically selecting an RP without showing a HRD selection screen. The relyingPartyAlias can refer to these three inputs:- SAML AuthnRequest.Issuer ID
- SAML AuthnRequest.ProviderName
- OIDC client_id
If no alias matches through and no HRD entries without an alias remain, all the tiles are displayed through.- Returns:
this.
-
hrdHintAlias
The HRD hint parameter sent by the RP is matched against the following attributes of the ClaimsProvider element.
This allows decoupling the RP configuration from the internal CP ID. If configured, only the alias is checked against the HRD hint to avoid accidental dependency on the CP ID.
The HRD hint is matched against the followingClaimsProviderfields in the given order:- hrdHintAlias
- name
- id
- Returns:
this.- Since:
- 1.10.0
- See Also:
-
banner
Show this banner above the HRD selection area if tile is enabled.- Returns:
this.- Since:
- 1.9.0
-
order
Indicates the order of display in the UI. Special values:- less or equal 0 - do not show in UI
- 1xx - first priority CPs (displayed larger, ordered numerically)
- 2xx - second priority CPs (displayed larger, ordered numerically)
- 3xx - third priority CPs (displayed smalled, ordered numerically)
- Returns:
this.- Since:
- 1.9.0
-
name
Name displayed to the user directly. The XTB SPA frontend uses it to translate the name into a text with the translation service. The skinny frontend uses the items directly.- Returns:
this.
-
title
Title for the CP tile and help item.
The fallback order (if not defined) is: title > name > ID- Returns:
this.
-
description
Text displayed in the CP tile.
The fallback order (if not defined) is: description > name > ID- Returns:
this.
-
img
Image displayed in the HRD large view.- Returns:
this.
-
button
Deprecated.removeImage displayed in the small view. This feature was removed and replaced by shortcut/color rendering. The small view was dropped in v1.5.- Returns:
this.
-
shortcut
A usually two-character code identifying the CP on small screens.- Returns:
this.
-
color
HTML color code identifying the CP on small screens.- Returns:
this.
-
noticeEnabled
Notice enabled- Returns:
this.- Since:
- 1.14.0
-
noticeMaxAgeSec
Notice max age- Returns:
this.- Since:
- 1.14.0
-
noticeClaimsProviders
public ClaimsProvider.ClaimsProviderBuilder noticeClaimsProviders(List<String> noticeClaimsProviders) The list of ClaimsProviders name- Returns:
this.- Since:
- 1.14.0
-
build
-
toString
-