public class TokenRequestContext extends Object
Constructor and Description |
---|
TokenRequestContext()
Creates a token request instance.
|
Modifier and Type | Method and Description |
---|---|
TokenRequestContext |
addScopes(String... scopes)
Adds one or more scopes to the request scopes.
|
String |
getClaims()
Get the additional claims to be included in the token.
|
List<String> |
getScopes()
Gets the scopes required for the token.
|
TokenRequestContext |
setClaims(String claims)
Set the additional claims to be included in the token.
|
TokenRequestContext |
setScopes(List<String> scopes)
Sets the scopes required for the token.
|
public TokenRequestContext()
public List<String> getScopes()
public TokenRequestContext setScopes(List<String> scopes)
scopes
- the scopes required for the tokenpublic TokenRequestContext addScopes(String... scopes)
scopes
- one or more scopes to addpublic TokenRequestContext setClaims(String claims)
claims
- the additional claims to be included in the token.public String getClaims()
Copyright © 2021 Microsoft Corporation. All rights reserved.