33 строки
3.4 KiB
YAML
33 строки
3.4 KiB
YAML
### YamlMime:JavaType
|
|
uid: "com.azure.core.client.traits.TokenCredentialTrait"
|
|
fullName: "com.azure.core.client.traits.TokenCredentialTrait<T>"
|
|
name: "TokenCredentialTrait<T>"
|
|
nameWithType: "TokenCredentialTrait<T>"
|
|
summary: "An <xref uid=\"com.azure.core.client.traits\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Azure SDK for Java trait\"></xref> providing a consistent interface for setting <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref>."
|
|
syntax: "public interface TokenCredentialTrait<T>"
|
|
methods:
|
|
- uid: "com.azure.core.client.traits.TokenCredentialTrait.credential(com.azure.core.credential.TokenCredential)"
|
|
fullName: "com.azure.core.client.traits.TokenCredentialTrait<T>.credential(TokenCredential credential)"
|
|
name: "credential(TokenCredential credential)"
|
|
nameWithType: "TokenCredentialTrait<T>.credential(TokenCredential credential)"
|
|
summary: "Sets the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> used to authorize requests sent to the service."
|
|
modifiers:
|
|
- "abstract"
|
|
parameters:
|
|
- description: "<xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> used to authorize requests sent to the service."
|
|
name: "credential"
|
|
type: "<xref href=\"com.azure.core.credential.TokenCredential?alt=com.azure.core.credential.TokenCredential&text=TokenCredential\" data-throw-if-not-resolved=\"False\" />"
|
|
syntax: "public abstract T credential(TokenCredential credential)"
|
|
desc: "Sets the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> used to authorize requests sent to the service. Refer to the Azure SDK for Java [identity and authentication][] documentation for more details on proper usage of the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> type.\n\n\n[identity and authentication]: https://aka.ms/azsdk/java/docs/identity"
|
|
returns:
|
|
description: "Returns the same concrete type with the appropriate properties updated, to allow for fluent chaining of\n operations."
|
|
type: "<xref href=\"T?alt=T&text=T\" data-throw-if-not-resolved=\"False\" />"
|
|
type: "interface"
|
|
typeParameters:
|
|
- description: "The concrete type that implements the trait. This is required so that fluent operations can continue\n to return the concrete type, rather than the trait type."
|
|
name: "T"
|
|
desc: "An <xref uid=\"com.azure.core.client.traits\" data-throw-if-not-resolved=\"false\" data-raw-source=\"Azure SDK for Java trait\"></xref> providing a consistent interface for setting <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref>. Refer to the Azure SDK for Java [identity and authentication][] documentation for more details on proper usage of the <xref uid=\"com.azure.core.credential.TokenCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"TokenCredential\"></xref> type.\n\n\n[identity and authentication]: https://aka.ms/azsdk/java/docs/identity"
|
|
metadata: {}
|
|
package: "com.azure.core.client.traits"
|
|
artifact: com.azure:azure-core:1.32.0
|