TokenResponse Class

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

public class TokenResponse

A response that includes a user token.

Constructor Summary

Constructor Description
TokenResponse()

Initializes a new instance of the TokenResponse class.

TokenResponse(String channelId, String connectionName, String token, String expiration)

Initializes a new instance of the TokenResponse class.

Method Summary

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

Gets the channelId value.

java.lang.String getConnectionName()

Get the connectionName value.

java.lang.String getExpiration()

Get the expiration value.

java.lang.String getToken()

Get the token value.

void setChannelId(String withChannelId)

Sets the channelId value.

void setConnectionName(String withConnectionName)

Set the connectionName value.

void setExpiration(String withExpiration)

Set the expiration value.

void setToken(String withToken)

Set the token value.

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

TokenResponse

public TokenResponse()

Initializes a new instance of the TokenResponse class.

TokenResponse

public TokenResponse(String channelId, String connectionName, String token, String expiration)

Initializes a new instance of the TokenResponse class.

Parameters:

channelId - The channelId.
connectionName - The connectionName.
token - The token.
expiration - the expiration.

Method Details

getChannelId

public String getChannelId()

Gets the channelId value.

Returns:

THe channel id.

getConnectionName

public String getConnectionName()

Get the connectionName value.

Returns:

the connectionName value

getExpiration

public String getExpiration()

Get the expiration value.

Returns:

the expiration value

getToken

public String getToken()

Get the token value.

Returns:

the token value

setChannelId

public void setChannelId(String withChannelId)

Sets the channelId value.

Parameters:

withChannelId - The channel id to set.

setConnectionName

public void setConnectionName(String withConnectionName)

Set the connectionName value.

Parameters:

withConnectionName - the connectionName value to set

setExpiration

public void setExpiration(String withExpiration)

Set the expiration value.

Parameters:

withExpiration - the expiration value to set

setToken

public void setToken(String withToken)

Set the token value.

Parameters:

withToken - the token value to set

Applies to