| Package | Description |
|---|---|
| com.microsoft.rest.v2 |
The package contains the runtime classes required for AutoRest generated
clients to compile and function.
|
| com.microsoft.rest.v2.credentials |
The package provides 2 basic credential classes that work with AutoRest
generated clients for authentication purposes.
|
| com.microsoft.rest.v2.http |
This package contains the HTTP abstractions between the AnnotationParser's RestProxy and whatever
HTTP client we choose to use.
|
| com.microsoft.rest.v2.policy |
Code related to creating proxy implementations of interfaces that have been generated from
Swagger specifications.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpPipeline |
RestProxy.createDefaultPipeline(ServiceClientCredentials credentials)
Create the default HttpPipeline.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BasicAuthenticationCredentials
Basic Auth credentials for use with a REST Service Client.
|
class |
TokenCredentials
Token based credentials for use with a REST Service Client.
|
| Modifier and Type | Method and Description |
|---|---|
HttpPipelineBuilder |
HttpPipelineBuilder.withCredentialsPolicy(ServiceClientCredentials credentials)
Add a RequestPolicy which applies the given ServiceClientCredentials to
outgoing requests.
|
| Constructor and Description |
|---|
CredentialsPolicyFactory(ServiceClientCredentials credentials)
Creates a Factory which produces CredentialsPolicy.
|
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/