Class SecureRandomIdentifierGenerationStrategyTest
java.lang.Object
net.shibboleth.shared.security.impl.SecureRandomIdentifierGenerationStrategyTest
Unit test for
SecureRandomIdentifierGenerationStrategy.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest generateIdentifier by generating a large number of identifiers and seeing whether each one is a valid XML ID, and that they are all different.voidTest generateIdentifier by generating a large number of identifiers and seeing whether each one is a valid XML ID, and that they are all different.
-
Constructor Details
-
SecureRandomIdentifierGenerationStrategyTest
public SecureRandomIdentifierGenerationStrategyTest()
-
-
Method Details
-
testGenerateIdentifier
public void testGenerateIdentifier()Test generateIdentifier by generating a large number of identifiers and seeing whether each one is a valid XML ID, and that they are all different. -
testConstructorWithSecureRandom
public void testConstructorWithSecureRandom() throws NoSuchAlgorithmException, InvalidAlgorithmParameterExceptionTest generateIdentifier by generating a large number of identifiers and seeing whether each one is a valid XML ID, and that they are all different.- Throws:
NoSuchAlgorithmException- if the SHA1PRNG algorithm is not availableInvalidAlgorithmParameterException
-