public class ClientCertificateCredential extends Object implements TokenCredential
Sample: Construct a simple ClientCertificateCredential
ClientCertificateCredential
credential1 = newClientCertificateCredentialBuilder
() .tenantId(tenantId) .clientId(clientId) .pemCertificate("C:\\fakepath\\cert.pem") .build();
Sample: Construct a ClientCertificateCredential behind a proxy
ClientCertificateCredential
credential2 = newClientCertificateCredentialBuilder
() .tenantId(tenantId) .clientId(clientId) .pfxCertificate("C:\\fakepath\\cert.pfx", "P@s$w0rd") .proxyOptions(newProxyOptions
(ProxyOptions.Type
.HTTP, newInetSocketAddress
("10.21.32.43", 5465))) .build();
Modifier and Type | Method and Description |
---|---|
Mono<AccessToken> |
getToken(TokenRequestContext request) |
public Mono<AccessToken> getToken(TokenRequestContext request)
getToken
in interface TokenCredential
Copyright © 2019 Microsoft Corporation. All rights reserved.