# Dynamic Client Registration via Okta Java SDK

**URL:** <https://devforum.okta.com/t/dynamic-client-registration-via-okta-java-sdk/16234>\
**Category:** Questions\
**Tags:** java\
**Created:** [September 20, 2021, 6:53pm UTC](https://devforum.okta.com/t/dynamic-client-registration-via-okta-java-sdk/16234 "2021-09-20T18:53:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abta](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@abta](https://devforum.okta.com/u/abta)\
**Post date:** [September 20, 2021, 6:53pm UTC](https://devforum.okta.com/t/dynamic-client-registration-via-okta-java-sdk/16234/1 "2021-09-20T18:53:00Z")

</div>

Hello,

We are working on a application/service which interacts with Okta via Okta Java SDK and OIDC/OAuth using Okta API scopes.

For the above to work, we have created Service application in Okta, using the Dynamic Client Registration API ([Dynamic Client Registration | Okta Developer](https://developer.okta.com/docs/reference/api/oauth-clients/))

Is there a Okta Java SDK API for Dynamic Client Registration, for registering new client and updating existing client ? I tried to search the okta java docs but I could not find any api for oidc client. The intention is, I think we can rotate the JWKS on oidc client based on some schedule.

Thanks

---

<div class="post-metadata">

**Author:** ![phi1ipp](https://avatars.discourse-cdn.com/v4/letter/p/85f322/32.png) [@phi1ipp](https://devforum.okta.com/u/phi1ipp)\
**Post date:** [September 20, 2021, 10:53pm UTC](https://devforum.okta.com/t/dynamic-client-registration-via-okta-java-sdk/16234/2 "2021-09-20T22:53:38Z")

</div>

Have not checked if it’s exactly it, but it might be `Client.createApplication()` with application object configured according to [Apps | Okta Developer](https://developer.okta.com/docs/reference/api/apps/#add-oauth-2-0-client-application)

---

<div class="post-metadata">

**Author:** ![abta](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@abta](https://devforum.okta.com/u/abta)\
**Post date:** [September 26, 2021, 10:33pm UTC](https://devforum.okta.com/t/dynamic-client-registration-via-okta-java-sdk/16234/3 "2021-09-26T22:33:14Z")

</div>

Yes you could use Client.createApplication() or DefaultOIDCApplicationBuilder to create OIDC client, I went with the later.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [September 27, 2021, 10:33pm UTC](https://devforum.okta.com/t/dynamic-client-registration-via-okta-java-sdk/16234/4 "2021-09-27T22:33:47Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
