TokenExchangeRequest Class

  • java.lang.Object
    • com.microsoft.bot.schema.TokenExchangeRequest

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 TokenExchangeRequest class.

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

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

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:

uri - The uri to intialize this instance with.
token - The token to initialize this instance with.

Method Details

getToken

public String getToken()

Gets a token String.

Returns:

the Token value as a String.

getUri

public String getUri()

Gets a URI String.

Returns:

the Uri value as a String.

setToken

public void setToken(String withToken)

Sets a token String.

Parameters:

withToken - The Token value.

setUri

public void setUri(String withUri)

Sets a URI String.

Parameters:

withUri - The Uri value.

Applies to