CertificateAppCredentialsOptions 類別

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

public class CertificateAppCredentialsOptions

CertificateAppCredentials 選項。

建構函式摘要

建構函式 Description
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應用程式標識碼。

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 應用程式識別碼。

void setChannelAuthTenant(String withChannelAuthTenant)

設定通道驗證租使用者。

void setPkcs12Certificate(InputStream withPkcs12Certificate)

將 InputStream 設定為 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應用程式標識碼。
withPkcs12Certificate - pkcs 憑證的 InputStream。
withPkcs12Password - pkcs 憑證密碼。

CertificateAppCredentialsOptions

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

初始化 CertificateAppCredentialsOptions。

參數:

withAppId - Microsoft應用程式標識碼。
withPkcs12Certificate - pkcs 憑證的 InputStream。
withPkcs12Password - pkcs 憑證密碼。
withChannelAuthTenant - 自選。 oauth 令牌租使用者。
withOAuthScope - 自選。 令牌的範圍。
withSendX5c - 指定是否應將 x5c 宣告(憑證的公鑰)傳送至 STS。

方法詳細資料

getAppId

public String getAppId()

取得Microsfot AppId。

傳回:

應用程式識別碼。

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 - 應用程式識別碼。

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。

適用於