# Algorithm.RSA method deprecation warning

**URL:** <https://community.auth0.com/t/algorithm-rsa-method-deprecation-warning/9242>\
**Category:** Get Help\
**Tags:** rsa256, token-validation\
**Created:** [January 19, 2018, 3:15pm UTC](https://community.auth0.com/t/algorithm-rsa-method-deprecation-warning/9242 "2018-01-19T15:15:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![priya.sharma.9362](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/priya.sharma.9362/32/14302_2.png) [@priya.sharma.9362](https://community.auth0.com/u/priya.sharma.9362)\
**Post date:** [January 19, 2018, 3:15pm UTC](https://community.auth0.com/t/algorithm-rsa-method-deprecation-warning/9242/1 "2018-01-19T15:15:30Z")

</div>

We are using this method for validating the JWT before granting access to our API.  
But recently we are getting a warning as below :

```
 warning: [deprecation] RSA256(RSAKey) in Algorithm has been deprecated

```

Is the support for this method going to be removed in the coming upgrades?  
Please let us know in case we need to opt for some other solution.

---

<div class="post-metadata">

**Author:** ![Anny](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/anny/32/13140_2.png) [@Anny](https://community.auth0.com/u/Anny)\
**Post date:** [January 19, 2018, 6:04pm UTC](https://community.auth0.com/t/algorithm-rsa-method-deprecation-warning/9242/2 "2018-01-19T18:04:58Z")

</div>

Can you please provide more details about where are you getting that warning?

---

<div class="post-metadata">

**Author:** ![priya.sharma.9362](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/priya.sharma.9362/32/14302_2.png) [@priya.sharma.9362](https://community.auth0.com/u/priya.sharma.9362)\
**Post date:** [January 19, 2018, 6:28pm UTC](https://community.auth0.com/t/algorithm-rsa-method-deprecation-warning/9242/3 "2018-01-19T18:28:46Z")

</div>

After every build.

---

<div class="post-metadata">

**Author:** ![Anny](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/anny/32/13140_2.png) [@Anny](https://community.auth0.com/u/Anny)\
**Post date:** [January 19, 2018, 6:30pm UTC](https://community.auth0.com/t/algorithm-rsa-method-deprecation-warning/9242/4 "2018-01-19T18:30:16Z")

</div>

Can you provide more details about your general setup? the code you’re using, the libraries (and versions) that you’re using?

---

<div class="post-metadata">

**Author:** ![priya.sharma.9362](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/priya.sharma.9362/32/14302_2.png) [@priya.sharma.9362](https://community.auth0.com/u/priya.sharma.9362)\
**Post date:** [January 23, 2018, 12:42pm UTC](https://community.auth0.com/t/algorithm-rsa-method-deprecation-warning/9242/5 "2018-01-23T12:42:25Z")

</div>

I am using JAVA SDK with the following libraries -

- java-jwt-3.3.0.jar

- jwks-rsa-0.1.0.jar

and the following code segment -

```
Jwk jwk = provider.get(keyId);
            RSAPublicKey publicKey = (RSAPublicKey) jwk.getPublicKey();
            Algorithm algorithm = Algorithm.RSA256(publicKey);
            JWTVerifier verifier = JWT.require(algorithm)
                    .withAudience(audience)  
                    .build();

```

---

<div class="post-metadata">

**Author:** ![priya.sharma.9362](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/priya.sharma.9362/32/14302_2.png) [@priya.sharma.9362](https://community.auth0.com/u/priya.sharma.9362)\
**Post date:** [January 30, 2018, 9:56pm UTC](https://community.auth0.com/t/algorithm-rsa-method-deprecation-warning/9242/6 "2018-01-30T21:56:50Z")

</div>

As per the discussion [here](https://github.com/auth0/auth0-java/issues/105)

Updating the jwks jar to the latest version resolved my issue. (jwks-rsa-0.3.0.jar)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 25, 2019, 9:47am UTC](https://community.auth0.com/t/algorithm-rsa-method-deprecation-warning/9242/7 "2019-07-25T09:47:59Z")

</div>


