CertificateAppCredentialsOptions 类

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

public class CertificateAppCredentialsOptions

CertificateAppCredentials 选项。

构造函数摘要

构造函数 说明
CertificateAppCredentialsOptions(String withAppId, InputStream withPkcs12Certificate, String withPkcs12Password)

使用所需参数初始化证书应用凭据选项。

CertificateAppCredentialsOptions(String withAppId, InputStream withPkcs12Certificate, String withPkcs12Password, String withChannelAuthTenant, String withOAuthScope, boolean withSendX5c)

初始化证书应用凭据选项。

方法摘要

修饰符和类型 方法和描述
java.lang.String getAppId()

获取 Microsfot 应用ID。

java.lang.String getChannelAuthTenant()

获取通道身份验证租户。

java.io.InputStream getPkcs12Certificate()

获取 PKCS12 证书的输入流。

java.lang.String getPkcs12Password()

获取 pkcs12 证书密码。

boolean getSendX5c()

获取是否应将 x5c 声明(证书的公钥)发送到 STS。

java.lang.String getoAuthScope()

获取 OAuth 范围。

void setAppId(String withAppId)

设置 Microsfot 应用ID。

void setChannelAuthTenant(String withChannelAuthTenant)

设置通道身份验证租户。

void setPkcs12Certificate(InputStream withPkcs12Certificate)

将输入流设置为 PKCS12 证书。

void setPkcs12Password(String withPkcs12Password)

设置 pkcs12 证书密码。

void setSendX5c(boolean withSendX5c)

设置是否应将 x5c 声明(证书的公钥)发送到 STS。

void setoAuthScope(String withOAuthScope)

设置 OAuth 范围。

方法继承自 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

构造函数详细信息

CertificateAppCredentialsOptions

public CertificateAppCredentialsOptions(String withAppId, InputStream withPkcs12Certificate, String withPkcs12Password)

使用所需的参数初始化 CertificateAppCredentialsOptions。

参数:

withAppId - Microsoft应用 ID。
withPkcs12Certificate - pkcs 证书的 InputStream。
withPkcs12Password - pkcs 证书密码。

CertificateAppCredentialsOptions

public CertificateAppCredentialsOptions(String withAppId, InputStream withPkcs12Certificate, String withPkcs12Password, String withChannelAuthTenant, String withOAuthScope, boolean withSendX5c)

初始化 CertificateAppCredentialsOptions。

参数:

withAppId - Microsoft应用 ID。
withPkcs12Certificate - pkcs 证书的 InputStream。
withPkcs12Password - pkcs 证书密码。
withChannelAuthTenant - 自选。 oauth 令牌租户。
withOAuthScope - 自选。 令牌的范围。
withSendX5c - 指定是否应将 x5c 声明(证书的公钥)发送到 STS。

方法详细信息

getAppId

public String getAppId()

获取 Microsfot AppId。

返回:

应用 ID。

getChannelAuthTenant

public String getChannelAuthTenant()

获取通道身份验证租户。

返回:

OAuth 通道身份验证租户。

getPkcs12Certificate

public InputStream getPkcs12Certificate()

获取 PKCS12 证书的 InputStream。

返回:

证书的 InputStream。

getPkcs12Password

public String getPkcs12Password()

获取 pkcs12 证书密码。

返回:

证书的密码。

getSendX5c

public boolean getSendX5c()

获取是否应将 x5c 声明(证书的公钥)发送到 STS。

返回:

true 以发送 x5c。

getoAuthScope

public String getoAuthScope()

获取 OAuth 范围。

返回:

OAuthScope。

setAppId

public void setAppId(String withAppId)

设置 Microsfot AppId。

参数:

withAppId - 应用 ID。

setChannelAuthTenant

public void setChannelAuthTenant(String withChannelAuthTenant)

设置通道身份验证租户。

参数:

withChannelAuthTenant - OAuth 通道身份验证租户。

setPkcs12Certificate

public void setPkcs12Certificate(InputStream withPkcs12Certificate)

将 InputStream 设置为 PKCS12 证书。

参数:

withPkcs12Certificate - 证书的 InputStream。

setPkcs12Password

public void setPkcs12Password(String withPkcs12Password)

设置 pkcs12 证书密码。

参数:

withPkcs12Password - 证书的密码。

setSendX5c

public void setSendX5c(boolean withSendX5c)

设置是否应将 x5c 声明(证书的公钥)发送到 STS。

参数:

withSendX5c - true 以发送 x5c。

setoAuthScope

public void setoAuthScope(String withOAuthScope)

设置 OAuth 范围。

参数:

withOAuthScope - OAuthScope。

适用于