# Oauth Security Update Java Validation

**URL:** <https://devforum.zoom.us/t/oauth-security-update-java-validation/81885>\
**Category:** Authentication\
**Tags:** api\
**Created:** [January 22, 2023, 2:52pm UTC](https://devforum.zoom.us/t/oauth-security-update-java-validation/81885 "2023-01-22T14:52:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![niall](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/niall/32/14772_2.png) [@niall](https://devforum.zoom.us/u/niall)\
**Post date:** [January 22, 2023, 2:52pm UTC](https://devforum.zoom.us/t/oauth-security-update-java-validation/81885/1 "2023-01-22T14:52:35Z")

</div>

Hello All,

I was reviewing my application code ahead of [The Access Token Chaange on Feb 14th 2023](https://devsupport.zoom.us/hc/en-us/articles/12363164278669-API-access-token-change). As far as I can tell, my code is fine and I do not have to change anything. I wanted to post it here. If it is not fine and you are a Java developer, can you please explain what is wrong. If it is fine, it will be here as a reference for other Java developers.

 ![zoom-toekns](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/9/7/979912cf51b5706ca58db1bf4819a6fd61c8cd76.png)

Thank you

---

<div class="post-metadata">

**Author:** ![rarev](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rarev/32/38939_2.png) [@rarev](https://devforum.zoom.us/u/rarev)\
**Post date:** [January 23, 2023, 10:31pm UTC](https://devforum.zoom.us/t/oauth-security-update-java-validation/81885/2 "2023-01-23T22:31:03Z")

</div>

Hey @niall

If `BASIC_AUTH` is the access token with “Bearer” prepended to it, then it seems like you should be okay.

Just to be clear, if you weren’t using that variable it would read `"Authorization", "Bearer <ACCESS TOKEN>"`

Let me know if you have any questions.

---

<div class="post-metadata">

**Author:** ![niall](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/niall/32/14772_2.png) [@niall](https://devforum.zoom.us/u/niall)\
**Post date:** [January 24, 2023, 7:03am UTC](https://devforum.zoom.us/t/oauth-security-update-java-validation/81885/4 "2023-01-24T07:03:09Z")

</div>

> private static final String ZOOM\_USER\_CREDENTIALS = ZOOM\_CLIENT\_ID + “:” + ZOOM\_API\_SECRET;  
> private static final String BASIC\_AUTH = "Basic " + new String(Base64.getEncoder().encode(ZOOM\_USER\_CREDENTIALS.getBytes()));

Thanks Ron 🙌
