Skip to content

Commit

Permalink
Implement method to support openjdk11.0.12 in key vault (#23549)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhichengliu12581 authored Aug 18, 2021
1 parent f125fc2 commit 5ec07ec
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import java.security.PrivateKey;
import java.security.SignatureSpi;
import java.security.SecureRandom;
import java.security.AlgorithmParameters;
import java.security.InvalidAlgorithmParameterException;
import java.security.spec.AlgorithmParameterSpec;
import static com.azure.security.keyvault.jca.implementation.KeyVaultClient.createKeyVaultClientBySystemProperty;
Expand Down Expand Up @@ -117,4 +118,17 @@ protected void engineUpdate(ByteBuffer b) {
@Override
protected void engineSetParameter(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException {
}

/**
* Add this method to enable getParameters which added in this commit:
* https://github.com/openjdk/jdk/commit/316140ff92af7ac1aadb74de9cd37a5f3c412406
* You can find this logic in file SignatureScheme.java and line 202 in this commit.
* Which will call this method. If we don't support this method, this algorithm won't be available
* @return AlgorithmParameters
*/
@Override
protected AlgorithmParameters engineGetParameters() {
return null;
}

}

0 comments on commit 5ec07ec

Please sign in to comment.