BC provider throws different error message on signature validation failure
This commit is contained in:
parent
5e3b6ab82b
commit
74eeecf91b
|
@ -128,7 +128,11 @@ public class SamlMetadataGeneratorTests extends IdpSamlTestCase {
|
|||
//no exception thrown
|
||||
SignatureException e = expectThrows(SignatureException.class,
|
||||
() -> SignatureValidator.validate(signature, readCredentials("RSA", 2048)));
|
||||
assertThat(e.getMessage(), containsString("Unable to evaluate key against signature"));
|
||||
if (inFipsJvm()) {
|
||||
assertThat(e.getMessage(), containsString("Signature cryptographic validation not successful"));
|
||||
} else {
|
||||
assertThat(e.getMessage(), containsString("Unable to evaluate key against signature"));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue