Package org.opensaml.saml.config
Class SAMLConfigurationSupport
java.lang.Object
org.opensaml.saml.config.SAMLConfigurationSupport
Helper class for working with the registered instance of
SAMLConfiguration, as obtained from
the ConfigurationService.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the allowed URL schemes.static FloatGet the inflation factor to use whenisDecoderEstimateInflatedSize()is enabled.static IntegerGet the KeyInfo size limit (currently POST SimpleSign only).static IntegerGet the SAMLRequest message size limit.static IntegerGet the SAMLResponse message size limit.static SAML1ArtifactBuilderFactoryGets the artifact factory for the library.static SAML2ArtifactBuilderFactoryGets the artifact factory for the library.static booleanGet the flag indicating whether to estimate the inflated size of deflated data, or to do an exact computation.static booleanGet the flag indicating whether to enforce KeyInfo size limits in the decoders (currently POST SimpleSign only).static booleanGet the flag indicating whether to enforce SAMLRequest message size limits in the decoders.static booleanGet the flag indicating whether to enforce SAMLResponse message size limits in the decoders.static voidsetAllowedBindingURLSchemes(List<String> schemes) Set the allowed URL schemes.static voidsetDecoderEstimateInflatedSize(boolean flag) Set the flag indicating whether to estimate the inflated size of deflated data, or to do an exact computation.static voidsetDecoderInflationFactor(Float inflationFactor) Set the inflation factor to use whenisDecoderEstimateInflatedSize()is enabled.static voidSet the KeyInfo size limit (currently POST SimpleSign only).static voidSet the SAMLRequest message size limit.static voidSet the SAMLResponse message size limit.static voidsetEnforceDecoderKeyInfoSizeLimit(boolean flag) Set the flag indicating whether to enforce KeyInfo size limits in the decoders (currently POST SimpleSign only).static voidsetEnforceDecoderRequestSizeLimit(boolean flag) Set the flag indicating whether to enforce SAMLRequest message size limits in the decoders.static voidsetEnforceDecoderResponseSizeLimit(boolean flag) Set the flag indicating whether to enforce SAMLResponse message size limits in the decoders.static voidSets the artifact factory for the library.static voidSets the artifact factory for the library.
-
Constructor Details
-
SAMLConfigurationSupport
private SAMLConfigurationSupport()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
Get the allowed URL schemes.- Returns:
- the list of allowed URL schemes
-
setAllowedBindingURLSchemes
Set the allowed URL schemes.- Parameters:
schemes- the new list of allowed URL schemes
-
isEnforceDecoderRequestSizeLimit
public static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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
-