ACCP can throw an incorrect NullPointerException when attempting to translate invalid keys with null formats. Per the JDK documentation this should throw an InvalidKeySpecException instead. By throwing the incorrect exception ACCP prevents the JCA from correctly falling back to providers which might support the keys.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
ACCP can throw an incorrect
NullPointerException
when attempting to translate invalid keys withnull
formats. Per the JDK documentation this should throw anInvalidKeySpecException
instead. By throwing the incorrect exception ACCP prevents the JCA from correctly falling back to providers which might support the keys.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.