How to do workflow api authentication using jwt in java, please help me on this.i need required code changes for client ad server side for this?

Authorizer and ClaimMapper are server plugin interfaces, and hence the plugins need to be written in Go. Default plugins, NewDefaultJWTClaimMapper() and NewDefaultAuthorizer(), we hope, cover most of the typical authorization scenarios or, worst case, can be tweaked to fit somebody’s needs easily.

You can use Java SDK to send Bearer tokens to the server for authorization via a gRPC interceptor.