com.microsoft.aad.msal4j.IHttpClient Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of msal4j Show documentation
Show all versions of msal4j Show documentation
Microsoft Authentication Library for Java gives you the ability to obtain tokens from Azure AD v2 (work and school
accounts, MSA) and Azure AD B2C, gaining access to Microsoft Cloud API and any other API secured by Microsoft
identities
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.microsoft.aad.msal4j;
/**
* Interface to be implemented when configuring http client for {@link IPublicClientApplication} or
* {@link IConfidentialClientApplication}.
*
* For more details, see https://aka.ms/msal4j-http-client
*/
public interface IHttpClient {
/**
* Should implement execution of outgoing HTTP request with HTTP client of choice. Adapts
* response returned from HTTP client to {@link IHttpResponse}
*
* @param httpRequest {@link HttpRequest}
* @return {@link IHttpResponse}.
* @throws Exception Non-recoverable exception. Recoverable exceptions should be handled by the
* IHttpClient implementation
*/
IHttpResponse send(HttpRequest httpRequest) throws Exception;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy