CertificateAppCredentialsOptions Classe

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

public class CertificateAppCredentialsOptions

Opzioni certificateAppCredentials.

Riepilogo dei costruttori

Costruttore Descrizione
CertificateAppCredentialsOptions(String withAppId, InputStream withPkcs12Certificate, String withPkcs12Password)

Inizializza l'opzione CertificateAppCredentialsOptions con gli argomenti necessari.

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

Inizializza le opzioni dicredenzialidell'appdel certificato.

Riepilogo dei metodi

Modificatore e tipo Metodo e descrizione
java.lang.String getAppId()

Ottiene l'IDdell'app Microsfot.

java.lang.String getChannelAuthTenant()

Ottiene il tenant di autenticazione del canale.

java.io.InputStream getPkcs12Certificate()

Ottiene l'oggetto InputStream al certificato PKCS12.

java.lang.String getPkcs12Password()

Ottiene la password certiciate pkcs12.

boolean getSendX5c()

Ottiene se l'attestazione x5c (chiave pubblica del certificato) deve essere inviata al servizio token di sicurezza.

java.lang.String getoAuthScope()

Ottiene l'ambito OAuth.

void setAppId(String withAppId)

Imposta l'IDdell'app Microsfot.

void setChannelAuthTenant(String withChannelAuthTenant)

Imposta il tenant di autenticazione del canale.

void setPkcs12Certificate(InputStream withPkcs12Certificate)

Imposta InputStream sul certificato PKCS12.

void setPkcs12Password(String withPkcs12Password)

Imposta la password certiciata pkcs12.

void setSendX5c(boolean withSendX5c)

Imposta se l'attestazione x5c (chiave pubblica del certificato) deve essere inviata al servizio token di sicurezza.

void setoAuthScope(String withOAuthScope)

Imposta l'ambito OAuth.

Metodi ereditati da 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

Dettagli costruttore

CertificateAppCredentialsOptions

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

Inizializza CertificateAppCredentialsOptions con gli argomenti obbligatori.

Parametri:

withAppId - ID app Microsoft.
withPkcs12Certificate - InputStream per il certificato pkcs.
withPkcs12Password - Password del certificato pkcs.

CertificateAppCredentialsOptions

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

Inizializza CertificateAppCredentialsOptions.

Parametri:

withAppId - ID app Microsoft.
withPkcs12Certificate - InputStream per il certificato pkcs.
withPkcs12Password - Password del certificato pkcs.
withChannelAuthTenant - Opzionale. Tenant del token oauth.
withOAuthScope - Opzionale. Ambito del token.
withSendX5c - Specifica se l'attestazione x5c (chiave pubblica del certificato) deve essere inviata al servizio token di sicurezza.

Dettagli metodo

getAppId

public String getAppId()

Ottiene il Microsfot AppId.

Restituisce:

ID app.

getChannelAuthTenant

public String getChannelAuthTenant()

Ottiene il tenant di autenticazione del canale.

Restituisce:

Tenant di autenticazione del canale OAuth.

getPkcs12Certificate

public InputStream getPkcs12Certificate()

Ottiene InputStream per il certificato PKCS12.

Restituisce:

InputStream per il certificato.

getPkcs12Password

public String getPkcs12Password()

Ottiene la password certiciate pkcs12.

Restituisce:

Password per il certificato.

getSendX5c

public boolean getSendX5c()

Ottiene se l'attestazione x5c (chiave pubblica del certificato) deve essere inviata al servizio token di sicurezza.

Restituisce:

true per inviare x5c.

getoAuthScope

public String getoAuthScope()

Ottiene l'ambito OAuth.

Restituisce:

The OAuthScope.

setAppId

public void setAppId(String withAppId)

Imposta il Microsfot AppId.

Parametri:

withAppId - ID app.

setChannelAuthTenant

public void setChannelAuthTenant(String withChannelAuthTenant)

Imposta il tenant di autenticazione del canale.

Parametri:

withChannelAuthTenant - Tenant di autenticazione del canale OAuth.

setPkcs12Certificate

public void setPkcs12Certificate(InputStream withPkcs12Certificate)

Imposta InputStream sul certificato PKCS12.

Parametri:

withPkcs12Certificate - InputStream per il certificato.

setPkcs12Password

public void setPkcs12Password(String withPkcs12Password)

Imposta la password certiciata pkcs12.

Parametri:

withPkcs12Password - Password per il certificato.

setSendX5c

public void setSendX5c(boolean withSendX5c)

Imposta se l'attestazione x5c (chiave pubblica del certificato) deve essere inviata al servizio token di sicurezza.

Parametri:

withSendX5c - true per inviare x5c.

setoAuthScope

public void setoAuthScope(String withOAuthScope)

Imposta l'ambito OAuth.

Parametri:

withOAuthScope - The OAuthScope.

Si applica a