Extract response handling in to separate class from MicrosoftStsOAuth2Strategy. Standard MSSTS response handling done in MicrosoftStsTokenResponseHandler extends AbstractMicrosoftStsTokenResponseHandler.
~Add a token response handler as a field in MicrosoftStsTokenRequest object. Caller can set response handler (extends AbstractMicrosoftStsTokenResponseHandler) for any customization like handling encryption response. We would use this in PRT response handling in upcoming and broker PRs~
By default MicrosoftStsOAuth2Strategy object would use standard response handler MicrosoftStsTokenResponseHandler.
Changes:
Added unit tests for these changes.
Corresponding broker changes https://github.com/AzureAD/ad-accounts-for-android/pull/2902