TokenExchangeResource Class

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

public class TokenExchangeResource

Response schema sent back from Bot Framework Token Service required to initiate a user single sign on.

Constructor Summary

Constructor Description
TokenExchangeResource()

Initializes a new instance of the TokenExchangeResource class.

TokenExchangeResource(String id, String uri, String providerId)

Initializes a new instance of the TokenExchangeResource class.

Method Summary

Modifier and Type Method and Description
java.lang.String getId()

A unique identifier for this token exchange instance.

java.lang.String getProviderId()

The identifier of the provider with which to attempt a token exchange A value of null or empty will default to Azure Active Directory.

java.lang.String getUri()

The application D / resource identifier with which to exchange a token.

void setId(String withId)

A unique identifier for this token exchange instance.

void setProviderId(String withProviderId)

The identifier of the provider with which to attempt a token exchange A value of null or empty will default to Azure Active Directory.

void setUri(String withUri)

The application D / resource identifier with which to exchange a token.

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

TokenExchangeResource

public TokenExchangeResource()

Initializes a new instance of the TokenExchangeResource class.

TokenExchangeResource

public TokenExchangeResource(String id, String uri, String providerId)

Initializes a new instance of the TokenExchangeResource class.

Parameters:

id - The id to initialize this instance to.
uri - The uri to initialize this instance to.
providerId - the providerId to initialize this instance to.

Method Details

getId

public String getId()

A unique identifier for this token exchange instance.

Returns:

the Id value as a String.

getProviderId

public String getProviderId()

The identifier of the provider with which to attempt a token exchange A value of null or empty will default to Azure Active Directory.

Returns:

the ProviderId value as a String.

getUri

public String getUri()

The application D / resource identifier with which to exchange a token. on behalf of

Returns:

the Uri value as a String.

setId

public void setId(String withId)

A unique identifier for this token exchange instance.

Parameters:

withId - The Id value.

setProviderId

public void setProviderId(String withProviderId)

The identifier of the provider with which to attempt a token exchange A value of null or empty will default to Azure Active Directory.

Parameters:

withProviderId - The ProviderId value.

setUri

public void setUri(String withUri)

The application D / resource identifier with which to exchange a token. on behalf of

Parameters:

withUri - The Uri value.

Applies to