Please take a review at https://cr.openjdk.java.net/~weijun/8242811/webrev.00/
The AlgorithmId::getDefaultAlgorithmParameterSpec method is used internally to retrieve a default AlgorithmParameterSpec to initialize a Signature, mainly be keytool. The test shows a case where it can be called. Thanks, Max