OAuthConfiguration Class

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

public class OAuthConfiguration

Configuration for OAuth client credential authentication.

Constructor Summary

Constructor Description
OAuthConfiguration(String withAuthority, String withScope)

Construct with authority and scope.

Method Summary

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

Gets oAuth Authority for authentication.

java.lang.String getScope()

Gets oAuth scope for authentication.

void setAuthority(String withAuthority)

Sets oAuth Authority for authentication.

void setScope(String withScope)

Sets oAuth scope for authentication.

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

OAuthConfiguration

public OAuthConfiguration(String withAuthority, String withScope)

Construct with authority and scope.

Parameters:

withAuthority - The auth authority.
withScope - The auth scope.

Method Details

getAuthority

public String getAuthority()

Gets oAuth Authority for authentication.

Returns:

OAuth Authority for authentication.

getScope

public String getScope()

Gets oAuth scope for authentication.

Returns:

OAuth scope for authentication.

setAuthority

public void setAuthority(String withAuthority)

Sets oAuth Authority for authentication.

Parameters:

withAuthority - oAuth Authority for authentication.

setScope

public void setScope(String withScope)

Sets oAuth scope for authentication.

Parameters:

withScope - oAuth Authority for authentication.

Applies to