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)
TokenCredential
getToken
in interface TokenCredential
request
- the details of the token requestRuntimeException
- If the UTF-8 encoding isn't supported.Copyright © 2021 Microsoft Corporation. All rights reserved.