Hello @Aheen Arputharaj , in order to obtain an Azure KeyVault secret using Java you can use sample code available at Azure Key Vault Secret Samples client library for Java. Eg:
TokenCredential clientSecretCredential = new ClientSecretCredentialBuilder().tenantId("string").clientId("string").clientSecret("string").build();
SecretAsyncClient secretAsyncClient = new SecretClientBuilder()
.vaultUrl("string")
.credential(tokenCredential)
.buildAsyncClient();
secretAsyncClient.getSecret("string").subscribe(secretResponse -> /*do something*/ );
Authenticating samples can be found at JavaDocCodeSnippets.java.
Let us know if you need additional assistance. If the answer was helpful, please accept it and rate it so that others facing a similar issue can easily find a solution.