public class SAMLConfiguration extends Object
The configuration instance to use would typically be retrieved from the
ConfigurationService
.
Modifier and Type | Class and Description |
---|---|
private static class |
SAMLConfiguration.LowercaseFunction
Function to lowercase a string input.
|
Modifier and Type | Field and Description |
---|---|
private List<String> |
allowedBindingURLSchemes
The list of schemes allowed to appear in binding URLs when encoding a message.
|
private DateTimeFormatter |
dateFormatter
Formatter used to write dates.
|
private static String |
defaultDateFormat
Date format in SAML object, default is yyyy-MM-dd'T'HH:mm:ss.SSS'Z'.
|
private static Function<String,String> |
lowercaseFunction
Lowercase string function.
|
private SAML1ArtifactBuilderFactory |
saml1ArtifactBuilderFactory
SAML 1 Artifact factory.
|
private SAML2ArtifactBuilderFactory |
saml2ArtifactBuilderFactory
SAML 2 Artifact factory.
|
Constructor and Description |
---|
SAMLConfiguration()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getAllowedBindingURLSchemes()
Gets the unmodifiable list of schemes allowed to appear in binding URLs when encoding a message.
|
SAML1ArtifactBuilderFactory |
getSAML1ArtifactBuilderFactory()
Gets the artifact factory for the library.
|
SAML2ArtifactBuilderFactory |
getSAML2ArtifactBuilderFactory()
Gets the artifact factory for the library.
|
DateTimeFormatter |
getSAMLDateFormatter()
Gets the date format used to string'ify SAML's
DateTime objects. |
void |
setAllowedBindingURLSchemes(List<String> schemes)
Sets the list of schemes allowed to appear in binding URLs when encoding a message.
|
void |
setSAML1ArtifactBuilderFactory(SAML1ArtifactBuilderFactory factory)
Sets the artifact factory for the library.
|
void |
setSAML2ArtifactBuilderFactory(SAML2ArtifactBuilderFactory factory)
Sets the artifact factory for the library.
|
void |
setSAMLDateFormat(String format)
Sets the date format used to string'ify SAML's date/time objects.
|
private static Function<String,String> lowercaseFunction
private static String defaultDateFormat
private DateTimeFormatter dateFormatter
private SAML1ArtifactBuilderFactory saml1ArtifactBuilderFactory
private SAML2ArtifactBuilderFactory saml2ArtifactBuilderFactory
public DateTimeFormatter getSAMLDateFormatter()
DateTime
objects.public void setSAMLDateFormat(String format)
format
- date format used to string'ify date objectspublic SAML1ArtifactBuilderFactory getSAML1ArtifactBuilderFactory()
public void setSAML1ArtifactBuilderFactory(SAML1ArtifactBuilderFactory factory)
factory
- artifact factory for the librarypublic SAML2ArtifactBuilderFactory getSAML2ArtifactBuilderFactory()
public void setSAML2ArtifactBuilderFactory(SAML2ArtifactBuilderFactory factory)
factory
- artifact factory for the library@Nonnull @NonnullElements @Unmodifiable @NotLive public List<String> getAllowedBindingURLSchemes()
All scheme values returned will be lowercased.
Defaults to 'http' and 'https'.
public void setAllowedBindingURLSchemes(@Nullable List<String> schemes)
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).
schemes
- URL schemes allowed to appear in a messageCopyright © 1999–2016 Shibboleth Consortium. All rights reserved.