Class DefaultSaml2MessageIDGenerator
java.lang.Object
se.swedenconnect.spring.saml.idp.utils.DefaultSaml2MessageIDGenerator
- All Implemented Interfaces:
Saml2MessageIDGenerator
An implementation of the
Saml2MessageIDGenerator
based on Shibboleth's
RandomIdentifierGenerationStrategy
that ensures that XML-safe identifiers are generated.- Author:
- Martin Lindström
-
Constructor Summary
ConstructorDescriptionDefault constructor.DefaultSaml2MessageIDGenerator
(int idSize) Constructor. -
Method Summary
-
Constructor Details
-
DefaultSaml2MessageIDGenerator
public DefaultSaml2MessageIDGenerator()Default constructor. Uses 16 bytes identifiers. -
DefaultSaml2MessageIDGenerator
public DefaultSaml2MessageIDGenerator(int idSize) Constructor.- Parameters:
idSize
- the number of bytes used for the identifier
-
-
Method Details
-
generateIdentifier
Generates an identifier.- Specified by:
generateIdentifier
in interfaceSaml2MessageIDGenerator
- Returns:
- an identifier
-