TokenExchangeRequest Class
- java.
lang. Object - com.
microsoft. bot. schema. TokenExchangeRequest
- com.
public class TokenExchangeRequest
Request payload to be sent to the Bot Framework Token Service for Single Sign On.If the URI is set to a custom scope, then Token Service will exchange the token in its cache for a token targeting the custom scope and return it in the response.If a Token is sent in the payload, then Token Service will exchange the token for a token targetting the scopes specified in the corresponding OAauth connection.
Constructor Summary
| Constructor | Description |
|---|---|
| TokenExchangeRequest() |
Initializes a new instance of the TokenExchangeRequest class. |
| TokenExchangeRequest(String uri, String token) |
Initializes a new instance of the Token |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
getToken()
Gets a token String. |
| java.lang.String |
getUri()
Gets a URI String. |
| void |
setToken(String withToken)
Sets a token String. |
| void |
setUri(String withUri)
Sets a URI String. |
Methods inherited from java.lang.Object
Constructor Details
TokenExchangeRequest
public TokenExchangeRequest()
Initializes a new instance of the TokenExchangeRequest class.
TokenExchangeRequest
public TokenExchangeRequest(String uri, String token)
Initializes a new instance of the TokenExchangeRequest class.
Parameters:
Method Details
getToken
public String getToken()
Gets a token String.
Returns:
getUri
public String getUri()
Gets a URI String.
Returns:
setToken
public void setToken(String withToken)
Sets a token String.
Parameters:
setUri
public void setUri(String withUri)
Sets a URI String.
Parameters: