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 |
|---|---|
reactor.core.publisher.Mono<AccessToken> |
getToken(String... scopes)
Asynchronously get a token for a given resource/audience.
|
public reactor.core.publisher.Mono<AccessToken> getToken(String... scopes)
TokenCredentialgetToken in interface TokenCredentialscopes - the scopes the token will be used forRuntimeException - If the UTF-8 encoding isn't supported.Copyright © 2019 Microsoft Corporation. All rights reserved.