java.lang.Object
swiss.trustbroker.federation.xmlconfig.Saml
All Implemented Interfaces:
Serializable

public class Saml extends Object implements Serializable
SAML configuration for CP/RP.
See Also:
  • Constructor Details

    • Saml

      public Saml()
    • Saml

      public Saml(Boolean enabled, Boolean forwardRpProtocolBinding, ProtocolEndpoints protocolEndpoints, ArtifactBinding artifactBinding, List<swiss.trustbroker.common.saml.dto.SamlBinding> supportedBindings, Encryption encryption, Signature signature)
      Creates a new Saml instance.
      Parameters:
      enabled - SAML protocol enabled.
      Default: true (for backwards compatibility)
      Note: At the moment, SAML needs to be enabled for OIDC as well due to the internal SAML hop done for OIDC.
      forwardRpProtocolBinding - Forward ProtocolBinding from RP tp CP.
      Default: true
      protocolEndpoints - SAML protocol endpoint configuration.
      artifactBinding - SAML Artifact Binding configuration
      supportedBindings - List of supported inbound SAML bindings.
      Default: Bindings enabled in global configuration (since 1.14.0, before all bindings were allowed)
      encryption - SAML encryption configuration.
      signature - SAML signature configuration.
      Since:
      1.14.0, 1.12.0, 1.12.0
      See Also:
  • Method Details

    • initializedSignature

      public Signature initializedSignature()
    • initializedEncryption

      public Encryption initializedEncryption()
    • initializedArtifactBinding

      public ArtifactBinding initializedArtifactBinding()
    • initializedProtocolEndpoints

      public ProtocolEndpoints initializedProtocolEndpoints()
    • isEnabled

      public boolean isEnabled()
    • isForwardRpProtocolBinding

      public boolean isForwardRpProtocolBinding()
    • builder

      public static Saml.SamlBuilder builder()
    • getEnabled

      public Boolean getEnabled()
      SAML protocol enabled.
      Default: true (for backwards compatibility)
      Note: At the moment, SAML needs to be enabled for OIDC as well due to the internal SAML hop done for OIDC.
      Since:
      1.14.0
    • getForwardRpProtocolBinding

      public Boolean getForwardRpProtocolBinding()
      Forward ProtocolBinding from RP tp CP.
      Default: true
      Since:
      1.12.0
    • getProtocolEndpoints

      public ProtocolEndpoints getProtocolEndpoints()
      SAML protocol endpoint configuration.
    • getArtifactBinding

      public ArtifactBinding getArtifactBinding()
      SAML Artifact Binding configuration
    • getSupportedBindings

      public List<swiss.trustbroker.common.saml.dto.SamlBinding> getSupportedBindings()
      List of supported inbound SAML bindings.
      Default: Bindings enabled in global configuration (since 1.14.0, before all bindings were allowed)
      Since:
      1.12.0
      See Also:
    • getEncryption

      public Encryption getEncryption()
      SAML encryption configuration.
    • getSignature

      public Signature getSignature()
      SAML signature configuration.
    • setEnabled

      public void setEnabled(Boolean enabled)
      SAML protocol enabled.
      Default: true (for backwards compatibility)
      Note: At the moment, SAML needs to be enabled for OIDC as well due to the internal SAML hop done for OIDC.
      Since:
      1.14.0
    • setForwardRpProtocolBinding

      public void setForwardRpProtocolBinding(Boolean forwardRpProtocolBinding)
      Forward ProtocolBinding from RP tp CP.
      Default: true
      Since:
      1.12.0
    • setProtocolEndpoints

      public void setProtocolEndpoints(ProtocolEndpoints protocolEndpoints)
      SAML protocol endpoint configuration.
    • setArtifactBinding

      public void setArtifactBinding(ArtifactBinding artifactBinding)
      SAML Artifact Binding configuration
    • setSupportedBindings

      public void setSupportedBindings(List<swiss.trustbroker.common.saml.dto.SamlBinding> supportedBindings)
      List of supported inbound SAML bindings.
      Default: Bindings enabled in global configuration (since 1.14.0, before all bindings were allowed)
      Since:
      1.12.0
      See Also:
    • setEncryption

      public void setEncryption(Encryption encryption)
      SAML encryption configuration.
    • setSignature

      public void setSignature(Signature signature)
      SAML signature configuration.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object