public class TokenRequest extends Object
| Constructor and Description |
|---|
TokenRequest()
Creates a token request instance.
|
| Modifier and Type | Method and Description |
|---|---|
TokenRequest |
addScopes(String... scopes)
Adds one or more scopes to the request scopes.
|
List<String> |
getScopes()
Gets the scopes required for the token.
|
TokenRequest |
setScopes(List<String> scopes)
Sets the scopes required for the token.
|
public List<String> getScopes()
public TokenRequest setScopes(List<String> scopes)
scopes - the scopes required for the tokenpublic TokenRequest addScopes(String... scopes)
scopes - one or more scopes to addCopyright © 2019 Microsoft Corporation. All rights reserved.