MicrosoftAppCredentials Class
- java.
lang. Object - com.
microsoft. bot. connector. authentication. AppCredentials - com.
microsoft. bot. connector. authentication. MicrosoftAppCredentials
- com.
- com.
public class MicrosoftAppCredentials
extends AppCredentials
MicrosoftAppCredentials auth implementation and cache.
Field Summary
| Modifier and Type | Field and Description |
|---|---|
| static final java.lang.String |
MICROSOFTAPPID
The configuration property for the Microsoft app Password. |
| static final java.lang.String |
MICROSOFTAPPPASSWORD
The configuration property for the Microsoft app ID. |
Constructor Summary
| Constructor | Description |
|---|---|
| MicrosoftAppCredentials(String withAppId, String withAppPassword) |
Initializes a new instance of the Microsoft |
| MicrosoftAppCredentials(String withAppId, String withAppPassword, String withChannelAuthTenant) |
Initializes a new instance of the Microsoft |
| MicrosoftAppCredentials(String withAppId, String withAppPassword, String withChannelAuthTenant, String withOAuthScope) |
Initializes a new instance of the Microsoft |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| protected Authenticator |
buildAuthenticator()
Returns an credentials Authenticator. |
|
static
Microsoft |
empty()
Returns an empty set of credentials. |
| java.lang.String |
getAppPassword()
Gets the app password for this credential. |
| void |
setAppPassword(String withAppPassword)
Sets the app password for this credential. |
Methods inherited from AppCredentials
Methods inherited from java.lang.Object
Field Details
MICROSOFTAPPID
public static final String MICROSOFTAPPID
The configuration property for the Microsoft app Password.
MICROSOFTAPPPASSWORD
public static final String MICROSOFTAPPPASSWORD
The configuration property for the Microsoft app ID.
Constructor Details
MicrosoftAppCredentials
public MicrosoftAppCredentials(String withAppId, String withAppPassword)
Initializes a new instance of the MicrosoftAppCredentials class.
Parameters:
MicrosoftAppCredentials
public MicrosoftAppCredentials(String withAppId, String withAppPassword, String withChannelAuthTenant)
Initializes a new instance of the MicrosoftAppCredentials class.
Parameters:
MicrosoftAppCredentials
public MicrosoftAppCredentials(String withAppId, String withAppPassword, String withChannelAuthTenant, String withOAuthScope)
Initializes a new instance of the MicrosoftAppCredentials class.
Parameters:
Method Details
buildAuthenticator
protected Authenticator buildAuthenticator()
Returns an credentials Authenticator.
Overrides:
MicrosoftAppCredentials.buildAuthenticator()Returns:
Throws:
empty
public static MicrosoftAppCredentials empty()
Returns an empty set of credentials.
Returns:
getAppPassword
public String getAppPassword()
Gets the app password for this credential.
Returns:
setAppPassword
public void setAppPassword(String withAppPassword)
Sets the app password for this credential.
Parameters: