Package swiss.trustbroker.config.dto
Class SamlProperties.SamlPropertiesBuilder
java.lang.Object
swiss.trustbroker.config.dto.SamlProperties.SamlPropertiesBuilder
- Enclosing class:
SamlProperties
-
Method Summary
Modifier and TypeMethodDescriptionartifactResolution(ArtifactResolution artifactResolution) SAML Artifact Resolution configuration.List of exposed SAML protocols.build()consumerUrl(String consumerUrl) XTB SAML consumer URL, included in the metadata.dropAttrSelectionIfNoFilter(boolean dropAttrSelectionIfNoFilter) Drop all CP attributes if there is no AttributeSelection definedenabled(boolean enabled) SAML protocol enabled.flowPolicyNamespaces(List<SamlNamespace> flowPolicyNamespaces) Flow control namespace mappings.idpLogoutMetadataEnabled(boolean idpLogoutMetadataEnabled) SAML RP-side logout support can be hidden setting this feature flag to false.idpMetadataEnabled(boolean idpMetadataEnabled) SAML CP-side metadata can be hidden setting this feature flag to false.idpNameFormats(List<String> idpNameFormats) CP-side supported name formatsspLogoutMetadataEnabled(boolean spLogoutMetadataEnabled) SAML CP-side logout support could be enabled but CPs need to be added as RPs.spMetadataEnabled(boolean spMetadataEnabled) SAML SP-side metadata can be hidden setting this feature flag to false.spNameFormats(List<String> spNameFormats) RP-side supported name formatstoString()
-
Method Details
-
enabled
SAML protocol enabled.
Default: true- Returns:
this.- Since:
- 1.14.0
-
consumerUrl
XTB SAML consumer URL, included in the metadata.
Note: Currently, the path that is requested on XTB needs to be one of the default paths:/api/v1/saml/adfs/ls/adfs/ls//trustbroker/adfs/ls/(deprecated)
- Returns:
this.
-
flowPolicyNamespaces
public SamlProperties.SamlPropertiesBuilder flowPolicyNamespaces(List<SamlNamespace> flowPolicyNamespaces) Flow control namespace mappings.- Returns:
this.
-
artifactResolution
public SamlProperties.SamlPropertiesBuilder artifactResolution(ArtifactResolution artifactResolution) SAML Artifact Resolution configuration.- Returns:
this.
-
bindings
List of exposed SAML protocols.
Default:- urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST
- urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect
- urn:oasis:names:tc:SAML:2.0:bindings:HTTP-Artifact
- urn:oasis:names:tc:SAML:2.0:bindings:SOAP (since 1.12.0 - only supported for LogoutRequest)
- Returns:
this.- Since:
- 1.9.0
-
spMetadataEnabled
SAML SP-side metadata can be hidden setting this feature flag to false.- Returns:
this.- Since:
- 1.9.0
-
spNameFormats
RP-side supported name formats- Returns:
this.- Since:
- 1.9.0
-
spLogoutMetadataEnabled
public SamlProperties.SamlPropertiesBuilder spLogoutMetadataEnabled(boolean spLogoutMetadataEnabled) SAML CP-side logout support could be enabled but CPs need to be added as RPs.- Returns:
this.- Since:
- 1.9.0
-
idpMetadataEnabled
SAML CP-side metadata can be hidden setting this feature flag to false.- Returns:
this.- Since:
- 1.9.0
-
idpNameFormats
CP-side supported name formats- Returns:
this.- Since:
- 1.9.0
-
idpLogoutMetadataEnabled
public SamlProperties.SamlPropertiesBuilder idpLogoutMetadataEnabled(boolean idpLogoutMetadataEnabled) SAML RP-side logout support can be hidden setting this feature flag to false.- Returns:
this.- Since:
- 1.9.0
-
dropAttrSelectionIfNoFilter
public SamlProperties.SamlPropertiesBuilder dropAttrSelectionIfNoFilter(boolean dropAttrSelectionIfNoFilter) Drop all CP attributes if there is no AttributeSelection defined- Returns:
this.- Since:
- 1.10.0
-
build
-
toString
-