OAuthPromptSettings Class
- java.
lang. Object - com.
microsoft. bot. dialogs. prompts. OAuthPromptSettings
- com.
public class OAuthPromptSettings
Contains settings for an OAuthPrompt/>.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| OAuthPromptSettings() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
getConnectionName()
Gets the name of the OAuth connection. |
| boolean |
getEndOnInvalidMessage()
Gets a value indicating whether the OAuthPrompt should end upon receiving an invalid message. |
|
App |
getOAuthAppCredentials()
Gets the OAuth |
| java.lang.String |
getText()
Gets any additional text to include in the sign-in card. |
| java.lang.Integer |
getTimeout()
Gets the number of milliseconds the prompt waits for the user to authenticate. |
| java.lang.String |
getTitle()
Gets the title of the sign-in card. |
| void |
setConnectionName(String withConnectionName)
Sets the name of the OAuth connection. |
| void |
setEndOnInvalidMessage(boolean withEndOnInvalidMessage)
Sets a value indicating whether the OAuthPrompt should end upon receiving an invalid message. |
| void |
setOAuthAppCredentials(AppCredentials withOAuthAppCredentials)
Sets the OAuth |
| void |
setText(String withText)
Sets any additional text to include in the sign-in card. |
| void |
setTimeout(Integer withTimeout)
Sets the number of milliseconds the prompt waits for the user to authenticate. |
| void |
setTitle(String withTitle)
Sets the title of the sign-in card. |
Methods inherited from java.lang.Object
Constructor Details
OAuthPromptSettings
public OAuthPromptSettings()
Method Details
getConnectionName
public String getConnectionName()
Gets the name of the OAuth connection.
Returns:
getEndOnInvalidMessage
public boolean getEndOnInvalidMessage()
Gets a value indicating whether the OAuthPrompt should end upon receiving an invalid message. Generally the OAuthPrompt will ignore incoming messages from the user during the auth flow, if they are not related to the auth flow. This flag enables ending the OAuthPrompt rather than ignoring the user's message. Typically, this flag will be set to 'true', but is 'false' by default for backwards compatibility.
Returns:
getOAuthAppCredentials
public AppCredentials getOAuthAppCredentials()
Gets the OAuthAppCredentials for OAuthPrompt.
Returns:
getText
public String getText()
Gets any additional text to include in the sign-in card.
Returns:
getTimeout
public Integer getTimeout()
Gets the number of milliseconds the prompt waits for the user to authenticate. Default is 900,000 (15 minutes).
Returns:
getTitle
public String getTitle()
Gets the title of the sign-in card.
Returns:
setConnectionName
public void setConnectionName(String withConnectionName)
Sets the name of the OAuth connection.
Parameters:
setEndOnInvalidMessage
public void setEndOnInvalidMessage(boolean withEndOnInvalidMessage)
Sets a value indicating whether the OAuthPrompt should end upon receiving an invalid message. Generally the OAuthPrompt will ignore incoming messages from the user during the auth flow, if they are not related to the auth flow. This flag enables ending the OAuthPrompt rather than ignoring the user's message. Typically, this flag will be set to 'true', but is 'false' by default for backwards compatibility.
Parameters:
setOAuthAppCredentials
public void setOAuthAppCredentials(AppCredentials withOAuthAppCredentials)
Sets the OAuthAppCredentials for OAuthPrompt.
Parameters:
setText
public void setText(String withText)
Sets any additional text to include in the sign-in card.
Parameters:
setTimeout
public void setTimeout(Integer withTimeout)
Sets the number of milliseconds the prompt waits for the user to authenticate. Default is 900,000 (15 minutes).
Parameters:
setTitle
public void setTitle(String withTitle)
Sets the title of the sign-in card.
Parameters: