Class SAMLConfiguration
The configuration instance to use would typically be retrieved from the
ConfigurationService.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe list of schemes allowed to appear in binding URLs when encoding a message.private booleanFlag indicating whether to estimate the inflated size of deflated data, or to do an exact computation.private FloatThe inflation factor to use whenisDecoderEstimateInflatedSize()is enabled.private IntegerKeyInfo size limit (currently POST SimpleSign only).private IntegerSAMLRequest message size limit.private IntegerSAMLResponse message size limit.private booleanFlag indicating whether to enforce KeyInfo size limits in the decoders (currently POST SimpleSign only).private booleanFlag indicating whether to enforce SAMLRequest message size limits in the decoders.private booleanFlag indicating whether to enforce SAMLResponse message size limits in the decoders.private SAML1ArtifactBuilderFactorySAML 1 Artifact factory.private SAML2ArtifactBuilderFactorySAML 2 Artifact factory. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the unmodifiable list of schemes allowed to appear in binding URLs when encoding a message.Get the inflation factor to use whenisDecoderEstimateInflatedSize()is enabled.Get the KeyInfo size limit (currently POST SimpleSign only).Get the SAMLRequest message size limit.Get the SAMLResponse message size limit.Gets the artifact factory for the library.Gets the artifact factory for the library.booleanGet the flag indicating whether to estimate the inflated size of deflated data, or to do an exact computation.booleanGet the flag indicating whether to enforce KeyInfo size limits in the decoders (currently POST SimpleSign only).booleanGet the flag indicating whether to enforce SAMLRequest message size limits in the decoders.booleanGet the flag indicating whether to enforce SAMLResponse message size limits in the decoders.voidsetAllowedBindingURLSchemes(List<String> schemes) Sets the list of schemes allowed to appear in binding URLs when encoding a message.voidsetDecoderEstimateInflatedSize(boolean flag) Set the flag indicating whether to estimate the inflated size of deflated data, or to do an exact computation.voidsetDecoderInflationFactor(Float inflationFactor) Set the inflation factor to use whenisDecoderEstimateInflatedSize()is enabled.voidSet the KeyInfo size limit (currently POST SimpleSign only).voidSet the SAMLRequest message size limit.voidSet the SAMLResponse message size limit.voidsetEnforceDecoderKeyInfoSizeLimit(boolean flag) Set the flag indicating whether to enforce KeyInfo size limits in the decoders (currently POST SimpleSign only).voidsetEnforceDecoderRequestSizeLimit(boolean flag) Set the flag indicating whether to enforce SAMLRequest message size limits in the decoders.voidsetEnforceDecoderResponseSizeLimit(boolean flag) Set the flag indicating whether to enforce SAMLResponse message size limits in the decoders.voidSets the artifact factory for the library.voidSets the artifact factory for the library.
-
Field Details
-
saml1ArtifactBuilderFactory
SAML 1 Artifact factory. -
saml2ArtifactBuilderFactory
SAML 2 Artifact factory. -
allowedBindingURLSchemes
The list of schemes allowed to appear in binding URLs when encoding a message. Defaults to 'http' and 'https'. -
enforceDecoderRequestSizeLimit
private boolean enforceDecoderRequestSizeLimitFlag indicating whether to enforce SAMLRequest message size limits in the decoders. -
decoderRequestSizeLimit
SAMLRequest message size limit. -
enforceDecoderResponseSizeLimit
private boolean enforceDecoderResponseSizeLimitFlag indicating whether to enforce SAMLResponse message size limits in the decoders. -
decoderResponseSizeLimit
SAMLResponse message size limit. -
enforceDecoderKeyInfoSizeLimit
private boolean enforceDecoderKeyInfoSizeLimitFlag indicating whether to enforce KeyInfo size limits in the decoders (currently POST SimpleSign only). -
decoderKeyInfoSizeLimit
KeyInfo size limit (currently POST SimpleSign only). -
decoderEstimateInflatedSize
private boolean decoderEstimateInflatedSizeFlag indicating whether to estimate the inflated size of deflated data, or to do an exact computation. -
decoderInflationFactor
The inflation factor to use whenisDecoderEstimateInflatedSize()is enabled.
-
-
Constructor Details
-
SAMLConfiguration
public SAMLConfiguration()Constructor.
-
-
Method Details
-
getSAML1ArtifactBuilderFactory
Gets the artifact factory for the library.- Returns:
- artifact factory for the library
-
setSAML1ArtifactBuilderFactory
Sets the artifact factory for the library.- Parameters:
factory- artifact factory for the library
-
getSAML2ArtifactBuilderFactory
Gets the artifact factory for the library.- Returns:
- artifact factory for the library
-
setSAML2ArtifactBuilderFactory
Sets the artifact factory for the library.- Parameters:
factory- artifact factory for the library
-
getAllowedBindingURLSchemes
Gets the unmodifiable list of schemes allowed to appear in binding URLs when encoding a message.All scheme values returned will be lowercased.
Defaults to 'http' and 'https'.
- Returns:
- list of URL schemes allowed to appear in a message
-
setAllowedBindingURLSchemes
Sets the list of schemes allowed to appear in binding URLs when encoding a message.The supplied list will be copied. Values will be normalized: 1) strings will be trimmed, 2) nulls will be removed, and 3) all values will be lowercased.
Note, the appearance of schemes such as 'javascript' may open the system up to attacks (e.g. cross-site scripting attacks).
- Parameters:
schemes- URL schemes allowed to appear in a message
-
isEnforceDecoderRequestSizeLimit
public boolean isEnforceDecoderRequestSizeLimit()Get the flag indicating whether to enforce SAMLRequest message size limits in the decoders.- Returns:
- true if enforcement enabled, false if not
-
setEnforceDecoderRequestSizeLimit
public void setEnforceDecoderRequestSizeLimit(boolean flag) Set the flag indicating whether to enforce SAMLRequest message size limits in the decoders.- Parameters:
flag- true if enforcement enabled, false if not
-
getDecoderRequestSizeLimit
Get the SAMLRequest message size limit.- Returns:
- the limit in bytes
-
setDecoderRequestSizeLimit
Set the SAMLRequest message size limit.- Parameters:
limit- the limit in bytes
-
isEnforceDecoderResponseSizeLimit
public boolean isEnforceDecoderResponseSizeLimit()Get the flag indicating whether to enforce SAMLResponse message size limits in the decoders.- Returns:
- true if enforcement enabled, false if not
-
setEnforceDecoderResponseSizeLimit
public void setEnforceDecoderResponseSizeLimit(boolean flag) Set the flag indicating whether to enforce SAMLResponse message size limits in the decoders.- Parameters:
flag- true if enforcement enabled, false if not
-
getDecoderResponseSizeLimit
Get the SAMLResponse message size limit.- Returns:
- the limit in bytes
-
setDecoderResponseSizeLimit
Set the SAMLResponse message size limit.- Parameters:
limit- the limit in bytes
-
isEnforceDecoderKeyInfoSizeLimit
public boolean isEnforceDecoderKeyInfoSizeLimit()Get the flag indicating whether to enforce KeyInfo size limits in the decoders (currently POST SimpleSign only).- Returns:
- true if enforcement enabled, false if not
-
setEnforceDecoderKeyInfoSizeLimit
public void setEnforceDecoderKeyInfoSizeLimit(boolean flag) Set the flag indicating whether to enforce KeyInfo size limits in the decoders (currently POST SimpleSign only).- Parameters:
flag- true if enforcement enabled, false if not
-
getDecoderKeyInfoSizeLimit
Get the KeyInfo size limit (currently POST SimpleSign only).- Returns:
- the limit in bytes
-
setDecoderKeyInfoSizeLimit
Set the KeyInfo size limit (currently POST SimpleSign only).- Parameters:
limit- the limit in bytes
-
isDecoderEstimateInflatedSize
public boolean isDecoderEstimateInflatedSize()Get the flag indicating whether to estimate the inflated size of deflated data, or to do an exact computation.For more details on usage see the documentation for
SAMLBindingSupport.getDeflatedSize(String, boolean, Float).- Returns:
- true if estimation is enabled, false if not
-
setDecoderEstimateInflatedSize
public void setDecoderEstimateInflatedSize(boolean flag) Set the flag indicating whether to estimate the inflated size of deflated data, or to do an exact computation.For more details on usage see the documentation for
SAMLBindingSupport.getDeflatedSize(String, boolean, Float).- Parameters:
flag- true if estimate is enabled, false if not
-
getDecoderInflationFactor
Get the inflation factor to use whenisDecoderEstimateInflatedSize()is enabled.For more details on usage see the documentation for
SAMLBindingSupport.getDeflatedSize(String, boolean, Float).- Returns:
- the inflation factor
-
setDecoderInflationFactor
Set the inflation factor to use whenisDecoderEstimateInflatedSize()is enabled.For more details on usage see the documentation for
SAMLBindingSupport.getDeflatedSize(String, boolean, Float).- Parameters:
inflationFactor- the inflation factor
-