File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
lib/src/main/java/com/auth0/jwt/algorithms Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,11 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
183
183
* @param keyProvider the provider of the Public Key and Private Key for the verify and signing instance.
184
184
* @return a valid ECDSA256 Algorithm.
185
185
* @throws IllegalArgumentException if the Key Provider is null.
186
+ * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
187
+ * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
188
+ * This method will be removed in the next major version. See for additional information
186
189
*/
190
+ @ Deprecated
187
191
public static Algorithm ECDSA256K (ECDSAKeyProvider keyProvider ) throws IllegalArgumentException {
188
192
return new ECDSAAlgorithm ("ES256K" , "SHA256withECDSA" , 32 , keyProvider );
189
193
}
@@ -195,7 +199,11 @@ public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalAr
195
199
* @param privateKey the key to use in the signing instance.
196
200
* @return a valid ECDSA256 Algorithm.
197
201
* @throws IllegalArgumentException if the provided Key is null.
202
+ * @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
203
+ * Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
204
+ * This method will be removed in the next major version. See for additional information
198
205
*/
206
+ @ Deprecated
199
207
public static Algorithm ECDSA256K (ECPublicKey publicKey , ECPrivateKey privateKey ) throws IllegalArgumentException {
200
208
return ECDSA256K (ECDSAAlgorithm .providerForKeys (publicKey , privateKey ));
201
209
}
You can’t perform that action at this time.
0 commit comments