public final class BearerAuthenticationSetup extends Object
HttpClientBuilder to call the
BearerCredentialsSupport class.| Modifier and Type | Method and Description |
|---|---|
static void |
configureClientBuilder(org.apache.http.impl.client.HttpClientBuilder httpBuilder,
BearerCredentialsSupport support)
Configures a
HttpClientBuilder to call the informed
BearerCredentialsSupport object to answer "bearer" challenges,
such as 401 Unauthorized responses. |
static void |
configureClientBuilder(org.apache.http.impl.client.HttpClientBuilder httpBuilder,
CloudCredentials credentials)
Checks if the
credentials parameter is an instance of
BearerCredentialsSupport. |
public static void configureClientBuilder(org.apache.http.impl.client.HttpClientBuilder httpBuilder,
CloudCredentials credentials)
credentials parameter is an instance of
BearerCredentialsSupport. If so, forwards the call to
configureClientBuilder(HttpClientBuilder, BearerCredentialsSupport)
.public static void configureClientBuilder(org.apache.http.impl.client.HttpClientBuilder httpBuilder,
BearerCredentialsSupport support)
HttpClientBuilder to call the informed
BearerCredentialsSupport object to answer "bearer" challenges,
such as 401 Unauthorized responses. The
BearerCredentialsSupport object can return a token an hide
401 results from users./**
* Copyright Microsoft Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/