Class ClaimsParty.ClaimsPartyBuilder<C extends ClaimsParty,B extends ClaimsParty.ClaimsPartyBuilder<C,B>>
java.lang.Object
swiss.trustbroker.federation.xmlconfig.CounterParty.CounterPartyBuilder<C,B>
swiss.trustbroker.federation.xmlconfig.ClaimsParty.ClaimsPartyBuilder<C,B>
- Enclosing class:
ClaimsParty
public abstract static class ClaimsParty.ClaimsPartyBuilder<C extends ClaimsParty,B extends ClaimsParty.ClaimsPartyBuilder<C,B>>
extends CounterParty.CounterPartyBuilder<C,B>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccountSource(AccountSource accountSource) The Account Source consumed by theIdmProvisioningServiceattributesSelection(AttributesSelection attributesSelection) The filtering is done when the SAML response is received from the CP.Configure what QoA the CP can deliver per default, e.g.authnRequestIssuerId(String authnRequestIssuerId) Override of the global issuer for this CP.abstract Cbuild()certificates(Certificates certificates) You only need to declare SignerTruststore for SAML response verification.cpBackendClientCredential(org.opensaml.security.credential.Credential cpBackendClientCredential) cpBackendTrustCredentials(List<org.opensaml.security.credential.Credential> cpBackendTrustCredentials) cpDecryptionCredentials(List<org.opensaml.security.credential.Credential> cpDecryptionCredentials) cpTrustCredential(List<org.opensaml.security.credential.Credential> cpTrustCredential) disableACUrl(Boolean disableACUrl) This flag allows to disable setting the AssertionConsumerServiceURL in the AuthnRequest towards the CP as some CPs do fail when it is set (correctly or incorrectly).enabled(FeatureEnum enabled) Flag to enable/disable this CP.The homeName is usually consumed from the home name attribute and identifies the CP attribute to consume the CP identity from instead of the subject name ID source.Issuer ID of the claims provider that need to match ClaimsProvider entries in ClaimsProviderDefinitions for HRD display and have to be returned by CPs in SAML responses.OIDC client configuration to integrate CP/IDPoriginalIssuer(String originalIssuer) The original issuer is by default consumed as is and not changed in the CP handling of XTB.provision(ProvisioningMode provision) Enable IDM provisioning based on CP response.provisioning(Provisioning provisioning) Provisioning configurations for this CP.QoA configurations for this CP.responseIssuer(String responseIssuer) Override ID as expected issuer of CP response.SAML protocol configuration for this CP.Script hooks.securityPolicies(SecurityPolicies securityPolicies) Global security policy overrides for this CP.protected abstract Bself()SAML POST endpoint on the CP.statusPolicy(StatusPolicy statusPolicy) This status policy determines the handling of users that are not found in the IDM: BLOCK_UNKNOWN_USER, ALLOW_UNKNOWN_USER.strongestPossibleAuthLevel(String strongestPossibleAuthLevel) This attribute allows to map a QoA ofsubjectNameMappings(SubjectNameMappings subjectNameMappings) Subject Name ID mappings for this CP.toString()WS-Trust protocol configuration for this CP.Methods inherited from class swiss.trustbroker.federation.xmlconfig.CounterParty.CounterPartyBuilder
subPath, validationStatus
-
Constructor Details
-
ClaimsPartyBuilder
public ClaimsPartyBuilder()
-
-
Method Details
-
id
Issuer ID of the claims provider that need to match ClaimsProvider entries in ClaimsProviderDefinitions for HRD display and have to be returned by CPs in SAML responses.
Notes:- CP IDs must be unique within the configuration of each environment
(
trustbroker-inventories/environment) - CP IDs may overlap with RP IDs.
- For SAML this ID is also used by the actual CP.
- For OIDC this just an internal ID.
- Returns:
this.
- CP IDs must be unique within the configuration of each environment
(
-
enabled
Flag to enable/disable this CP.
Default is true.- Returns:
this.
-
disableACUrl
This flag allows to disable setting the AssertionConsumerServiceURL in the AuthnRequest towards the CP as some CPs do fail when it is set (correctly or incorrectly).- Returns:
this.
-
statusPolicy
This status policy determines the handling of users that are not found in the IDM: BLOCK_UNKNOWN_USER, ALLOW_UNKNOWN_USER.- Returns:
this.- See Also:
-
provision
Enable IDM provisioning based on CP response.
Consider using the newerProvisioning.enabledinstead.
Default: FALSE- Returns:
this.- Since:
- 1.9.0
- See Also:
-
authLevel
Configure what QoA the CP can deliver per default, e.g. weak, normal or strong. See XTB Single Sign On (SSO, SLO) on how QoA is handled in the context of XTB.- Returns:
this.
-
strongestPossibleAuthLevel
This attribute allows to map a QoA ofStrongestPossible
on the message level to a corresponding real QoA level to handle XTB Single Sign On (SSO, SLO) as this QoA value does not represent a real QoA.
Fallback: authLevel- Returns:
this.
-
homeName
The homeName is usually consumed from the home name attribute and identifies the CP attribute to consume the CP identity from instead of the subject name ID source.
If not specified or not provided by CP the SAML Response Subject NameID is sued.- Returns:
this.
-
accountSource
The Account Source consumed by theIdmProvisioningService- Returns:
this.- Since:
- 1.12.0
-
originalIssuer
The original issuer is by default consumed as is and not changed in the CP handling of XTB.
Fallback: id- Returns:
this.
-
authnRequestIssuerId
Override of the global issuer for this CP.- Returns:
this.
-
responseIssuer
Override ID as expected issuer of CP response.
Can be set to decouple the CP response issuer from the ID. The ID of another CP is permitted here in which case the CP used for the request is picked.
Fallback: id- Returns:
this.- Since:
- 1.12.0
-
ssoUrl
SAML POST endpoint on the CP.- Returns:
this.
-
certificates
You only need to declare SignerTruststore for SAML response verification. For signing the SignerKeystore declared on the RP side is (re-)used.- Returns:
this.- See Also:
-
securityPolicies
Global security policy overrides for this CP.- Returns:
this.
-
oidc
OIDC client configuration to integrate CP/IDP- Returns:
this.- Since:
- 1.9.0
-
saml
SAML protocol configuration for this CP.- Returns:
this.
-
wsTrust
WS-Trust protocol configuration for this CP.- Returns:
this.- Since:
- 1.14.0
-
subjectNameMappings
Subject Name ID mappings for this CP.- Returns:
this.- Since:
- 1.8.0
-
qoa
QoA configurations for this CP.- Returns:
this.- Since:
- 1.9.0
-
provisioning
Provisioning configurations for this CP.- Returns:
this.- Since:
- 1.12.0
-
attributesSelection
The filtering is done when the SAML response is received from the CP. This element therefore declares, which original issuer attributes are acceptable for propagation to RPs.- Returns:
this.- See Also:
-
scripts
Script hooks. Only scripts related to this CP are executed.- Returns:
this.
-
cpTrustCredential
- Returns:
this.
-
cpDecryptionCredentials
public B cpDecryptionCredentials(List<org.opensaml.security.credential.Credential> cpDecryptionCredentials) - Returns:
this.
-
cpBackendClientCredential
public B cpBackendClientCredential(org.opensaml.security.credential.Credential cpBackendClientCredential) - Returns:
this.
-
cpBackendTrustCredentials
public B cpBackendTrustCredentials(List<org.opensaml.security.credential.Credential> cpBackendTrustCredentials) - Returns:
this.
-
self
- Specified by:
selfin classCounterParty.CounterPartyBuilder<C extends ClaimsParty,B extends ClaimsParty.ClaimsPartyBuilder<C, B>>
-
build
- Specified by:
buildin classCounterParty.CounterPartyBuilder<C extends ClaimsParty,B extends ClaimsParty.ClaimsPartyBuilder<C, B>>
-
toString
- Overrides:
toStringin classCounterParty.CounterPartyBuilder<C extends ClaimsParty,B extends ClaimsParty.ClaimsPartyBuilder<C, B>>
-