Skip to content

Commit

Permalink
Catch up v4 to master (#552)
Browse files Browse the repository at this point in the history
* Bump `jackson-databind` dependency to 2.13.2 (#542)

* Bump `jackson-databind` dependency to 2.13

* Update build.gradle

* Update build.gradle

* Deprecate ES256K Algorithm (#543)

* [SDK-3192] Deprecate secp256k1 curve for EC Algorithms

* Documentation update

* Release 3.19.0

Co-authored-by: Evan Sims <[email protected]>
Co-authored-by: James Anderson <[email protected]>
  • Loading branch information
3 people authored Mar 16, 2022
1 parent e7cae2b commit 7f45ff7
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Change Log

## [3.19.0](https://github.com/auth0/java-jwt/tree/3.19.0) (2022-03-14)
[Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.3...3.19.0)

**Deprecated**
- Deprecate ES256K Algorithm [\#543](https://github.com/auth0/java-jwt/pull/543) ([poovamraj](https://github.com/poovamraj))

**Fixed**
- fix typos in JWTVerifier#verify docstring [\#526](https://github.com/auth0/java-jwt/pull/526) ([OdunlamiZO](https://github.com/OdunlamiZO))

**Security**
- Bump `jackson-databind` dependency to 2.13.2 [\#542](https://github.com/auth0/java-jwt/pull/542) ([evansims](https://github.com/evansims))

## [3.18.3](https://github.com/auth0/java-jwt/tree/3.18.3) (2022-01-13)
[Full Changelog](https://github.com/auth0/java-jwt/compare/3.18.2...3.18.3)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ The library is available on both Maven Central and Bintray, and the Javadoc is p
<dependency>
<groupId>com.auth0</groupId>
<artifactId>java-jwt</artifactId>
<version>3.18.3</version>
<version>3.19.0</version>
</dependency>
```

### Gradle

```gradle
implementation 'com.auth0:java-jwt:3.18.3'
implementation 'com.auth0:java-jwt:3.19.0'
```

## Available Algorithms
Expand Down
2 changes: 1 addition & 1 deletion lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ javadoc {
}

dependencies {
implementation 'com.fasterxml.jackson.core:jackson-databind:2.12.6'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.13.2'

testImplementation 'org.bouncycastle:bcprov-jdk15on:1.70'
testImplementation 'junit:junit:4.13.2'
Expand Down
8 changes: 8 additions & 0 deletions lib/src/main/java/com/auth0/jwt/algorithms/Algorithm.java
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ public static Algorithm HMAC256(byte[] secret) throws IllegalArgumentException {
* @param keyProvider the provider of the Public Key and Private Key for the verify and signing instance.
* @return a valid ECDSA256 Algorithm.
* @throws IllegalArgumentException if the Key Provider is null.
* @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
* Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
* This method will be removed in the next major version. See for additional information
*/
@Deprecated
public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalArgumentException {
return new ECDSAAlgorithm("ES256K", "SHA256withECDSA", 32, keyProvider);
}
Expand All @@ -189,7 +193,11 @@ public static Algorithm ECDSA256K(ECDSAKeyProvider keyProvider) throws IllegalAr
* @param privateKey the key to use in the signing instance.
* @return a valid ECDSA256 Algorithm.
* @throws IllegalArgumentException if the provided Key is null.
* @deprecated The SECP-256K1 Curve algorithm has been disabled beginning in Java 15.
* Use of this method in those unsupported Java versions will throw a {@link java.security.SignatureException}.
* This method will be removed in the next major version. See for additional information
*/
@Deprecated
public static Algorithm ECDSA256K(ECPublicKey publicKey, ECPrivateKey privateKey) throws IllegalArgumentException {
return ECDSA256K(ECDSAAlgorithm.providerForKeys(publicKey, privateKey));
}
Expand Down

0 comments on commit 7f45ff7

Please sign in to comment.