Thank you for posting your query on Microsoft Q&A. From above description we could understand that you want to know if you could use SilentParameters to acquireToken silently for java confidential client application.
Please do correct me if this is not the case by responding in the comments section.
Yes, you could use SilentParameters to acquireToken silently. As per Acquiring tokens silently MSAL maintains a token cache (or two caches for confidential client applications) and caches a token after it's been acquired.
The exception applies to public clients only.
For public client Client credentials flow, which does not use the user token cache but an application token cache. This method takes care of verifying the application token cache before sending a request to the security token service (STS).
Please do let me know if you have any further queries.
Thanks,
Akshay Kaushik
Please "Accept the answer" (Yes), and share your feedback if the suggestion answers you’re your query. This will help us and others in the community as well.