Class ClaimsProvider
java.lang.Object
swiss.trustbroker.federation.xmlconfig.ClaimsProvider
- All Implemented Interfaces:
Serializable,swiss.trustbroker.api.homerealmdiscovery.attributes.HrdClaimsProviderToRelyingPartyMapping
public class ClaimsProvider
extends Object
implements Serializable, swiss.trustbroker.api.homerealmdiscovery.attributes.HrdClaimsProviderToRelyingPartyMapping
Configuration for CP mapped to an RP.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionClaimsProvider(String id, Boolean enabled, String clientNetworks, String relyingPartyAlias, String hrdHintAlias, String banner, Integer order, String name, String title, String description, String img, String button, String shortcut, String color, Boolean noticeEnabled, Integer noticeMaxAgeSec, List<String> noticeClaimsProviders) Deprecated.remove -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanShow this banner above the HRD selection area if tile is enabled.Deprecated.removeA comma separated list of network identifiers.getColor()HTML color code identifying the CP on small screens.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.The HRD hint parameter sent by the RP is matched against the following attributes of the ClaimsProvider element.getId()References the issuer ID of the CP.getImg()Image displayed in the HRD large view.getName()Name displayed to the user directly.The list of ClaimsProviders nameNotice enabledNotice max agegetOrder()Indicates the order of display in the UI.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.getTitle()Title for the CP tile and help item.inthashCode()booleanbooleanbooleanisMatchingHrdHint(String cpSelectionHint) final booleanisMatchingRelyingPartyAlias(String rpIssuer) final booleanisValidForNetwork(String network) static ClaimsProviderof(swiss.trustbroker.api.homerealmdiscovery.attributes.HrdClaimsProviderToRelyingPartyMapping mapping) voidShow this banner above the HRD selection area if tile is enabled.voidDeprecated.removevoidsetClientNetworks(String clientNetworks) A comma separated list of network identifiers.voidHTML color code identifying the CP on small screens.voidsetDescription(String description) Text displayed in the CP tile.voidsetEnabled(Boolean enabled) Allow pre-configuration of ClaimsProviderMappings with enabled or disabled ClaimsParty in profiles and only pick them per relying party in setup.voidsetHrdHintAlias(String hrdHintAlias) The HRD hint parameter sent by the RP is matched against the following attributes of the ClaimsProvider element.voidReferences the issuer ID of the CP.voidImage displayed in the HRD large view.voidName displayed to the user directly.voidsetNoticeClaimsProviders(List<String> noticeClaimsProviders) The list of ClaimsProviders namevoidsetNoticeEnabled(Boolean noticeEnabled) Notice enabledvoidsetNoticeMaxAgeSec(Integer noticeMaxAgeSec) Notice max agevoidIndicates the order of display in the UI.voidsetRelyingPartyAlias(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.voidsetShortcut(String shortcut) A usually two-character code identifying the CP on small screens.voidTitle for the CP tile and help item.toString()
-
Constructor Details
-
ClaimsProvider
public ClaimsProvider() -
ClaimsProvider
public ClaimsProvider(String id, Boolean enabled, String clientNetworks, String relyingPartyAlias, String hrdHintAlias, String banner, Integer order, String name, String title, String description, String img, String button, String shortcut, String color, Boolean noticeEnabled, Integer noticeMaxAgeSec, List<String> noticeClaimsProviders) Deprecated.removeCreates a newClaimsProviderinstance.- Parameters:
id- References the issuer ID of the CP.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.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)
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.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
banner- Show this banner above the HRD selection area if tile is enabled.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)
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.title- Title for the CP tile and help item.
The fallback order (if not defined) is: title > name > IDdescription- Text displayed in the CP tile.
The fallback order (if not defined) is: description > name > IDimg- Image displayed in the HRD large view.button- Image displayed in the small view. This feature was removed and replaced by shortcut/color rendering. The small view was dropped in v1.5.shortcut- A usually two-character code identifying the CP on small screens.color- HTML color code identifying the CP on small screens.noticeEnabled- Notice enablednoticeMaxAgeSec- Notice max agenoticeClaimsProviders- The list of ClaimsProviders name- Since:
- 1.9.0, 1.10.0, 1.9.0, 1.9.0, 1.14.0, 1.14.0, 1.14.0
- See Also:
-
-
Method Details
-
isValidForNetwork
-
isMatchingRelyingPartyAlias
-
of
public static ClaimsProvider of(swiss.trustbroker.api.homerealmdiscovery.attributes.HrdClaimsProviderToRelyingPartyMapping mapping) -
isDisplayed
public boolean isDisplayed() -
isEnabledAndValid
public boolean isEnabledAndValid() -
isMatchingHrdHint
-
builder
-
getId
References the issuer ID of the CP.- Specified by:
getIdin interfaceswiss.trustbroker.api.homerealmdiscovery.attributes.HrdClaimsProviderToRelyingPartyMapping
-
getEnabled
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.- Since:
- 1.9.0
-
getClientNetworks
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)
- Specified by:
getClientNetworksin interfaceswiss.trustbroker.api.homerealmdiscovery.attributes.HrdClaimsProviderToRelyingPartyMapping
-
getRelyingPartyAlias
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.- Specified by:
getRelyingPartyAliasin interfaceswiss.trustbroker.api.homerealmdiscovery.attributes.HrdClaimsProviderToRelyingPartyMapping
-
getHrdHintAlias
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
- Since:
- 1.10.0
- See Also:
-
getBanner
Show this banner above the HRD selection area if tile is enabled.- Since:
- 1.9.0
-
getOrder
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)
- Since:
- 1.9.0
-
getName
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. -
getTitle
Title for the CP tile and help item.
The fallback order (if not defined) is: title > name > ID -
getDescription
Text displayed in the CP tile.
The fallback order (if not defined) is: description > name > ID -
getImg
Image displayed in the HRD large view. -
getButton
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. -
getShortcut
A usually two-character code identifying the CP on small screens. -
getColor
HTML color code identifying the CP on small screens. -
getNoticeEnabled
Notice enabled- Since:
- 1.14.0
-
getNoticeMaxAgeSec
Notice max age- Since:
- 1.14.0
-
getNoticeClaimsProviders
The list of ClaimsProviders name- Since:
- 1.14.0
-
setId
References the issuer ID of the CP. -
setEnabled
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.- Since:
- 1.9.0
-
setClientNetworks
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)
-
setRelyingPartyAlias
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. -
setHrdHintAlias
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
- Since:
- 1.10.0
- See Also:
-
setBanner
Show this banner above the HRD selection area if tile is enabled.- Since:
- 1.9.0
-
setOrder
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)
- Since:
- 1.9.0
-
setName
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. -
setTitle
Title for the CP tile and help item.
The fallback order (if not defined) is: title > name > ID -
setDescription
Text displayed in the CP tile.
The fallback order (if not defined) is: description > name > ID -
setImg
Image displayed in the HRD large view. -
setButton
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. -
setShortcut
A usually two-character code identifying the CP on small screens. -
setColor
HTML color code identifying the CP on small screens. -
setNoticeEnabled
Notice enabled- Since:
- 1.14.0
-
setNoticeMaxAgeSec
Notice max age- Since:
- 1.14.0
-
setNoticeClaimsProviders
The list of ClaimsProviders name- Since:
- 1.14.0
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-