The response body of access token API of SharePoint contains
"token_type": "Bearer","expires_in": "86399","not_before": "1590557783","expires_on": "1590644483"
these parameters along with the bearer token. Since this bearer token is required in all other SharePoint rest API calls, so is there a way to cache/store this bearer token till it expires and reuse this token so that I do not have to call the access token API again and again for all other API calls where bearer token is required. I am using this in a Java based application.