Package swiss.trustbroker.config.dto
Class SamlProperties
java.lang.Object
swiss.trustbroker.config.dto.SamlProperties
@Configuration
@ConfigurationProperties(prefix="trustbroker.config.saml")
public class SamlProperties
extends Object
SAML protocol configuration.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSamlProperties(boolean enabled, String consumerUrl, List<SamlNamespace> flowPolicyNamespaces, ArtifactResolution artifactResolution, List<String> bindings, boolean spMetadataEnabled, List<String> spNameFormats, boolean spLogoutMetadataEnabled, boolean idpMetadataEnabled, List<String> idpNameFormats, boolean idpLogoutMetadataEnabled, boolean dropAttrSelectionIfNoFilter) Creates a newSamlPropertiesinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanSAML Artifact Resolution configuration.List of exposed SAML protocols.XTB SAML consumer URL, included in the metadata.Flow control namespace mappings.CP-side supported name formatsSet<swiss.trustbroker.common.saml.dto.SamlBinding> RP-side supported name formatsinthashCode()booleanDrop all CP attributes if there is no AttributeSelection definedbooleanSAML protocol enabled.booleanSAML RP-side logout support can be hidden setting this feature flag to false.booleanSAML CP-side metadata can be hidden setting this feature flag to false.booleanSAML CP-side logout support could be enabled but CPs need to be added as RPs.booleanSAML SP-side metadata can be hidden setting this feature flag to false.voidsetArtifactResolution(ArtifactResolution artifactResolution) SAML Artifact Resolution configuration.voidsetBindings(List<String> bindings) List of exposed SAML protocols.voidsetConsumerUrl(String consumerUrl) XTB SAML consumer URL, included in the metadata.voidsetDropAttrSelectionIfNoFilter(boolean dropAttrSelectionIfNoFilter) Drop all CP attributes if there is no AttributeSelection definedvoidsetEnabled(boolean enabled) SAML protocol enabled.voidsetFlowPolicyNamespaces(List<SamlNamespace> flowPolicyNamespaces) Flow control namespace mappings.voidsetIdpLogoutMetadataEnabled(boolean idpLogoutMetadataEnabled) SAML RP-side logout support can be hidden setting this feature flag to false.voidsetIdpMetadataEnabled(boolean idpMetadataEnabled) SAML CP-side metadata can be hidden setting this feature flag to false.voidsetIdpNameFormats(List<String> idpNameFormats) CP-side supported name formatsvoidsetSpLogoutMetadataEnabled(boolean spLogoutMetadataEnabled) SAML CP-side logout support could be enabled but CPs need to be added as RPs.voidsetSpMetadataEnabled(boolean spMetadataEnabled) SAML SP-side metadata can be hidden setting this feature flag to false.voidsetSpNameFormats(List<String> spNameFormats) RP-side supported name formatstoString()
-
Constructor Details
-
SamlProperties
public SamlProperties() -
SamlProperties
public SamlProperties(boolean enabled, String consumerUrl, List<SamlNamespace> flowPolicyNamespaces, ArtifactResolution artifactResolution, List<String> bindings, boolean spMetadataEnabled, List<String> spNameFormats, boolean spLogoutMetadataEnabled, boolean idpMetadataEnabled, List<String> idpNameFormats, boolean idpLogoutMetadataEnabled, boolean dropAttrSelectionIfNoFilter) Creates a newSamlPropertiesinstance.- Parameters:
enabled- SAML protocol enabled.
Default: trueconsumerUrl- 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)
flowPolicyNamespaces- Flow control namespace mappings.artifactResolution- SAML Artifact Resolution configuration.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)
spMetadataEnabled- SAML SP-side metadata can be hidden setting this feature flag to false.spNameFormats- RP-side supported name formatsspLogoutMetadataEnabled- SAML CP-side logout support could be enabled but CPs need to be added as RPs.idpMetadataEnabled- SAML CP-side metadata can be hidden setting this feature flag to false.idpNameFormats- CP-side supported name formatsidpLogoutMetadataEnabled- SAML RP-side logout support can be hidden setting this feature flag to false.dropAttrSelectionIfNoFilter- Drop all CP attributes if there is no AttributeSelection defined- Since:
- 1.14.0, 1.9.0, 1.9.0, 1.9.0, 1.9.0, 1.9.0, 1.9.0, 1.9.0, 1.10.0
-
-
Method Details
-
getSamlBindings
-
builder
-
isEnabled
public boolean isEnabled()SAML protocol enabled.
Default: true- Since:
- 1.14.0
-
getConsumerUrl
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)
-
getFlowPolicyNamespaces
Flow control namespace mappings. -
getArtifactResolution
SAML Artifact Resolution configuration. -
getBindings
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)
- Since:
- 1.9.0
-
isSpMetadataEnabled
public boolean isSpMetadataEnabled()SAML SP-side metadata can be hidden setting this feature flag to false.- Since:
- 1.9.0
-
getSpNameFormats
RP-side supported name formats- Since:
- 1.9.0
-
isSpLogoutMetadataEnabled
public boolean isSpLogoutMetadataEnabled()SAML CP-side logout support could be enabled but CPs need to be added as RPs.- Since:
- 1.9.0
-
isIdpMetadataEnabled
public boolean isIdpMetadataEnabled()SAML CP-side metadata can be hidden setting this feature flag to false.- Since:
- 1.9.0
-
getIdpNameFormats
CP-side supported name formats- Since:
- 1.9.0
-
isIdpLogoutMetadataEnabled
public boolean isIdpLogoutMetadataEnabled()SAML RP-side logout support can be hidden setting this feature flag to false.- Since:
- 1.9.0
-
isDropAttrSelectionIfNoFilter
public boolean isDropAttrSelectionIfNoFilter()Drop all CP attributes if there is no AttributeSelection defined- Since:
- 1.10.0
-
setEnabled
public void setEnabled(boolean enabled) SAML protocol enabled.
Default: true- Since:
- 1.14.0
-
setConsumerUrl
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)
-
setFlowPolicyNamespaces
Flow control namespace mappings. -
setArtifactResolution
SAML Artifact Resolution configuration. -
setBindings
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)
- Since:
- 1.9.0
-
setSpMetadataEnabled
public void setSpMetadataEnabled(boolean spMetadataEnabled) SAML SP-side metadata can be hidden setting this feature flag to false.- Since:
- 1.9.0
-
setSpNameFormats
RP-side supported name formats- Since:
- 1.9.0
-
setSpLogoutMetadataEnabled
public void setSpLogoutMetadataEnabled(boolean spLogoutMetadataEnabled) SAML CP-side logout support could be enabled but CPs need to be added as RPs.- Since:
- 1.9.0
-
setIdpMetadataEnabled
public void setIdpMetadataEnabled(boolean idpMetadataEnabled) SAML CP-side metadata can be hidden setting this feature flag to false.- Since:
- 1.9.0
-
setIdpNameFormats
CP-side supported name formats- Since:
- 1.9.0
-
setIdpLogoutMetadataEnabled
public void setIdpLogoutMetadataEnabled(boolean idpLogoutMetadataEnabled) SAML RP-side logout support can be hidden setting this feature flag to false.- Since:
- 1.9.0
-
setDropAttrSelectionIfNoFilter
public void setDropAttrSelectionIfNoFilter(boolean dropAttrSelectionIfNoFilter) Drop all CP attributes if there is no AttributeSelection defined- Since:
- 1.10.0
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-