Class TokenRequestContext
- java.lang.Object
-
- com.azure.android.core.credential.TokenRequestContext
-
public class TokenRequestContext extends java.lang.Object
Contains details of a request to get a token.
-
-
Constructor Summary
Constructors Constructor Description TokenRequestContext()
Creates a token request instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenRequestContext
addScopes(java.lang.String... scopes)
Adds one or more scopes to the request scopes.java.util.List<java.lang.String>
getScopes()
Gets the scopes required for the token.TokenRequestContext
setScopes(java.util.List<java.lang.String> scopes)
Sets the scopes required for the token.
-
-
-
Method Detail
-
getScopes
public java.util.List<java.lang.String> getScopes()
Gets the scopes required for the token.- Returns:
- the scopes required for the token
-
setScopes
public TokenRequestContext setScopes(java.util.List<java.lang.String> scopes)
Sets the scopes required for the token.- Parameters:
scopes
- the scopes required for the token- Returns:
- the TokenRequestContext itself
- Throws:
java.lang.NullPointerException
- ifscopes
is null
-
addScopes
public TokenRequestContext addScopes(java.lang.String... scopes)
Adds one or more scopes to the request scopes.- Parameters:
scopes
- one or more scopes to add- Returns:
- the TokenRequestContext itself
-
-