CertificateAppCredentialsOptions Class
- java.
lang. Object - com.
microsoft. bot. connector. authentication. CertificateAppCredentialsOptions
- com.
public class CertificateAppCredentialsOptions
CertificateAppCredentials Options.
Constructor Summary
| Constructor | Description |
|---|---|
| CertificateAppCredentialsOptions(String withAppId, InputStream withPkcs12Certificate, String withPkcs12Password) |
Initializes the Certificate |
| CertificateAppCredentialsOptions(String withAppId, InputStream withPkcs12Certificate, String withPkcs12Password, String withChannelAuthTenant, String withOAuthScope, boolean withSendX5c) |
Initializes the Certificate |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
getAppId()
Gets the Microsfot App |
| java.lang.String |
getChannelAuthTenant()
Gets the Channel Auth Tenant. |
| java.io.InputStream |
getPkcs12Certificate()
Gets the Input |
| java.lang.String |
getPkcs12Password()
Gets the pkcs12 certiciate password. |
| boolean |
getSendX5c()
Gets if the x5c claim (public key of the certificate) should be sent to the STS. |
| java.lang.String |
getoAuthScope()
Gets the OAuth scope. |
| void |
setAppId(String withAppId)
Sets the Microsfot App |
| void |
setChannelAuthTenant(String withChannelAuthTenant)
Sets the Channel Auth Tenant. |
| void |
setPkcs12Certificate(InputStream withPkcs12Certificate)
Sets the Input |
| void |
setPkcs12Password(String withPkcs12Password)
Sets the pkcs12 certiciate password. |
| void |
setSendX5c(boolean withSendX5c)
Sets if the x5c claim (public key of the certificate) should be sent to the STS. |
| void |
setoAuthScope(String withOAuthScope)
Sets the OAuth scope. |
Methods inherited from java.lang.Object
Constructor Details
CertificateAppCredentialsOptions
public CertificateAppCredentialsOptions(String withAppId, InputStream withPkcs12Certificate, String withPkcs12Password)
Initializes the CertificateAppCredentialsOptions with the required arguments.
Parameters:
CertificateAppCredentialsOptions
public CertificateAppCredentialsOptions(String withAppId, InputStream withPkcs12Certificate, String withPkcs12Password, String withChannelAuthTenant, String withOAuthScope, boolean withSendX5c)
Initializes the CertificateAppCredentialsOptions.
Parameters:
Method Details
getAppId
public String getAppId()
Gets the Microsfot AppId.
Returns:
getChannelAuthTenant
public String getChannelAuthTenant()
Gets the Channel Auth Tenant.
Returns:
getPkcs12Certificate
public InputStream getPkcs12Certificate()
Gets the InputStream to the PKCS12 certificate.
Returns:
getPkcs12Password
public String getPkcs12Password()
Gets the pkcs12 certiciate password.
Returns:
getSendX5c
public boolean getSendX5c()
Gets if the x5c claim (public key of the certificate) should be sent to the STS.
Returns:
getoAuthScope
public String getoAuthScope()
Gets the OAuth scope.
Returns:
setAppId
public void setAppId(String withAppId)
Sets the Microsfot AppId.
Parameters:
setChannelAuthTenant
public void setChannelAuthTenant(String withChannelAuthTenant)
Sets the Channel Auth Tenant.
Parameters:
setPkcs12Certificate
public void setPkcs12Certificate(InputStream withPkcs12Certificate)
Sets the InputStream to the PKCS12 certificate.
Parameters:
setPkcs12Password
public void setPkcs12Password(String withPkcs12Password)
Sets the pkcs12 certiciate password.
Parameters:
setSendX5c
public void setSendX5c(boolean withSendX5c)
Sets if the x5c claim (public key of the certificate) should be sent to the STS.
Parameters:
setoAuthScope
public void setoAuthScope(String withOAuthScope)
Sets the OAuth scope.
Parameters: