azure-docs-sdk-java/docs-ref-autogen/com.azure.core.client.trait...

33 строки
3.4 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.core.client.traits.AzureKeyCredentialTrait"
fullName: "com.azure.core.client.traits.AzureKeyCredentialTrait<T>"
name: "AzureKeyCredentialTrait<T>"
nameWithType: "AzureKeyCredentialTrait<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.AzureKeyCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AzureKeyCredential\"></xref>."
syntax: "public interface **AzureKeyCredentialTrait<T>**"
methods:
- uid: "com.azure.core.client.traits.AzureKeyCredentialTrait.credential(com.azure.core.credential.AzureKeyCredential)"
fullName: "com.azure.core.client.traits.AzureKeyCredentialTrait<T>.credential(AzureKeyCredential credential)"
name: "credential(AzureKeyCredential credential)"
nameWithType: "AzureKeyCredentialTrait<T>.credential(AzureKeyCredential credential)"
summary: "Sets the <xref uid=\"com.azure.core.credential.AzureKeyCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AzureKeyCredential\"></xref> used for authentication."
modifiers:
- "abstract"
parameters:
- description: "the <xref uid=\"com.azure.core.credential.AzureKeyCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AzureKeyCredential\"></xref> to be used for authentication."
name: "credential"
type: "<xref href=\"com.azure.core.credential.AzureKeyCredential?alt=com.azure.core.credential.AzureKeyCredential&text=AzureKeyCredential\" data-throw-if-not-resolved=\"False\" />"
syntax: "public abstract T credential(AzureKeyCredential credential)"
desc: "Sets the <xref uid=\"com.azure.core.credential.AzureKeyCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AzureKeyCredential\"></xref> used for authentication. 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.AzureKeyCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AzureKeyCredential\"></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.AzureKeyCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AzureKeyCredential\"></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.AzureKeyCredential\" data-throw-if-not-resolved=\"false\" data-raw-source=\"AzureKeyCredential\"></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.52.0