# Authentication and authorisation with Java Bindings?

**URL:** <https://forum.canton.network/t/authentication-and-authorisation-with-java-bindings/4816>\
**Category:** App Development\
**Tags:** java, security\
**Created:** [June 30, 2022, 2:05pm UTC](https://forum.canton.network/t/authentication-and-authorisation-with-java-bindings/4816 "2022-06-30T14:05:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaypeeda](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/jaypeeda/32/6967_2.png) [@jaypeeda](https://forum.canton.network/u/jaypeeda)\
**Post date:** [June 30, 2022, 2:05pm UTC](https://forum.canton.network/t/authentication-and-authorisation-with-java-bindings/4816/1 "2022-06-30T14:05:22Z")

</div>

Hi team,

May I know how Authentication and authorisation with Java Bindings ?

Cheers,  
Jean-Paul

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [June 30, 2022, 2:29pm UTC](https://forum.canton.network/t/authentication-and-authorisation-with-java-bindings/4816/2 "2022-06-30T14:29:33Z")

</div>

You can set the token when [building the ledger client](https://docs.daml.com/app-dev/bindings-java/javadocs/com/daml/ledger/rxjava/DamlLedgerClient.Builder.html#withAccessToken(java.lang.String)) or on individual requests, e.g., [command submission](https://docs.daml.com/app-dev/bindings-java/javadocs/com/daml/ledger/rxjava/CommandSubmissionClient.html#submit(java.lang.String,java.lang.String,java.lang.String,java.util.List,java.util.List,java.util.List,java.lang.String)).
