SimpleCredentialProvider Class
- java.
lang. Object - com.
microsoft. bot. connector. authentication. SimpleCredentialProvider
- com.
Implements
public class SimpleCredentialProvider
implements CredentialProvider
A simple implementation of the CredentialProvider interface.
Constructor Summary
| Constructor | Description |
|---|---|
| SimpleCredentialProvider() |
Initializes a new instance with empty credentials. |
| SimpleCredentialProvider(String withAppId, String withPassword) |
Initializes a new instance with the provided credentials. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
getAppId()
Gets the app ID for this credential. |
| java.util.concurrent.CompletableFuture<java.lang.String> |
getAppPassword(String validateAppId)
Gets the app password for a given bot app ID. |
| java.lang.String |
getPassword()
Gets the app password for this credential. |
| java.util.concurrent.CompletableFuture<java.lang.Boolean> |
isAuthenticationDisabled()
Checks whether bot authentication is disabled. |
| java.util.concurrent.CompletableFuture<java.lang.Boolean> |
isValidAppId(String validateAppId)
Validates an app ID. |
| void |
setAppId(String witAppId)
Sets the app ID for this credential. |
| void |
setPassword(String withPassword)
Sets the app password for this credential. |
Methods inherited from java.lang.Object
Constructor Details
SimpleCredentialProvider
public SimpleCredentialProvider()
Initializes a new instance with empty credentials.
SimpleCredentialProvider
public SimpleCredentialProvider(String withAppId, String withPassword)
Initializes a new instance with the provided credentials.
Parameters:
Method Details
getAppId
public String getAppId()
Gets the app ID for this credential.
Returns:
getAppPassword
public CompletableFuture
Gets the app password for a given bot app ID.
Parameters:
Returns:
getPassword
public String getPassword()
Gets the app password for this credential.
Returns:
isAuthenticationDisabled
public CompletableFuture
Checks whether bot authentication is disabled.
Returns:
isValidAppId
public CompletableFuture
Validates an app ID.
Parameters:
Returns:
setAppId
public void setAppId(String witAppId)
Sets the app ID for this credential.
Parameters:
setPassword
public void setPassword(String withPassword)
Sets the app password for this credential.
Parameters: