All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.aad.msal4j.IHttpClient Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.18.0
Show newest version
// 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