Class SamlProperties.SamlPropertiesBuilder

java.lang.Object
swiss.trustbroker.config.dto.SamlProperties.SamlPropertiesBuilder
Enclosing class:
SamlProperties

public static class SamlProperties.SamlPropertiesBuilder extends Object
  • Method Details

    • enabled

      public SamlProperties.SamlPropertiesBuilder enabled(boolean enabled)
      SAML protocol enabled.
      Default: true
      Returns:
      this.
      Since:
      1.14.0
    • consumerUrl

      public SamlProperties.SamlPropertiesBuilder consumerUrl(String 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

      public SamlProperties.SamlPropertiesBuilder bindings(List<String> 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

      public SamlProperties.SamlPropertiesBuilder spMetadataEnabled(boolean spMetadataEnabled)
      SAML SP-side metadata can be hidden setting this feature flag to false.
      Returns:
      this.
      Since:
      1.9.0
    • spNameFormats

      public SamlProperties.SamlPropertiesBuilder spNameFormats(List<String> 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

      public SamlProperties.SamlPropertiesBuilder idpMetadataEnabled(boolean idpMetadataEnabled)
      SAML CP-side metadata can be hidden setting this feature flag to false.
      Returns:
      this.
      Since:
      1.9.0
    • idpNameFormats

      public SamlProperties.SamlPropertiesBuilder idpNameFormats(List<String> 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

      public SamlProperties build()
    • toString

      public String toString()
      Overrides:
      toString in class Object