SimpleChannelProvider Class

  • java.lang.Object
    • com.microsoft.bot.connector.authentication.SimpleChannelProvider

Implements

public class SimpleChannelProvider
implements ChannelProvider

A ChannelProvider with in-memory values.

Constructor Summary

Constructor Description
SimpleChannelProvider()

Creates a SimpleChannelProvider with no ChannelService which will use Public Azure.

SimpleChannelProvider(String withChannelService)

Creates a SimpleChannelProvider with the specified ChannelService.

Method Summary

Modifier and Type Method and Description
java.util.concurrent.CompletableFuture<java.lang.String> getChannelService()

Returns the channel service value.

boolean isGovernment()

Indicates whether this is a Gov channel provider.

boolean isPublicAzure()

Indicates whether this is public Azure.

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

SimpleChannelProvider

public SimpleChannelProvider()

Creates a SimpleChannelProvider with no ChannelService which will use Public Azure.

SimpleChannelProvider

public SimpleChannelProvider(String withChannelService)

Creates a SimpleChannelProvider with the specified ChannelService.

Parameters:

withChannelService - The ChannelService to use. Null or empty strings represent Public Azure, the string 'https://botframework.us' represents US Government Azure, and other values are for private channels.

Method Details

getChannelService

public CompletableFuture getChannelService()

Returns the channel service value.

Returns:

The channel service.

isGovernment

public boolean isGovernment()

Indicates whether this is a Gov channel provider.

Returns:

True if Gov.

isPublicAzure

public boolean isPublicAzure()

Indicates whether this is public Azure.

Returns:

True if pubic Azure.

Applies to