public class ClientCertificateCredentialBuilder extends AadCredentialBuilderBase<ClientCertificateCredentialBuilder>
ClientCertificateCredential
.ClientCertificateCredential
Constructor and Description |
---|
ClientCertificateCredentialBuilder() |
Modifier and Type | Method and Description |
---|---|
ClientCertificateCredential |
build()
Creates a new
ClientCertificateCredential with the current configurations. |
ClientCertificateCredentialBuilder |
pemCertificate(String certificatePath)
Sets the client certificate for authenticating to AAD.
|
ClientCertificateCredentialBuilder |
pfxCertificate(String certificatePath,
String clientCertificatePassword)
Sets the client certificate for authenticating to AAD.
|
authorityHost, clientId, tenantId
maxRetry, proxyOptions, retryTimeout
public ClientCertificateCredentialBuilder pemCertificate(String certificatePath)
certificatePath
- the PEM file containing the certificatepublic ClientCertificateCredentialBuilder pfxCertificate(String certificatePath, String clientCertificatePassword)
certificatePath
- the password protected PFX file containing the certificateclientCertificatePassword
- the password protecting the PFX filepublic ClientCertificateCredential build()
ClientCertificateCredential
with the current configurations.ClientCertificateCredential
with the current configurations.Copyright © 2019 Microsoft Corporation. All rights reserved.