public class BasicAuthenticationCredential extends Object implements TokenCredential
| Constructor and Description |
|---|
BasicAuthenticationCredential(String username,
String password)
Creates a basic authentication credential.
|
| Modifier and Type | Method and Description |
|---|---|
Mono<AccessToken> |
getToken(TokenRequestContext request)
Asynchronously get a token for a given resource/audience.
|
public Mono<AccessToken> getToken(TokenRequestContext request)
TokenCredentialgetToken in interface TokenCredentialrequest - the details of the token requestRuntimeException - If the UTF-8 encoding isn't supported.Copyright © 2019 Microsoft Corporation. All rights reserved.