ClientAssertion class

Klientský kontrolní výraz typu jwt-bearer používaný v důvěrných tocích klientů

Metody

fromAssertion(string)

Inicializace Třídy ClientAssertion z clientAssertion předané uživatelem

fromCertificate(string, string, string)
fromCertificateWithSha256Thumbprint(string, string, string)

Inicializace třídy ClientAssertion z certifikátu předaného uživatelem

getJwt(CryptoProvider, string, string)

Aktualizujte JWT pro klienta na základě certifikátů, pokud ho předá uživatel, použije ho tak, jak je

parseCertificate(string)

Extrahuje nezpracované certifikáty z daného řetězce certifikátu a vrátí je v poli.

Podrobnosti metody

fromAssertion(string)

Inicializace Třídy ClientAssertion z clientAssertion předané uživatelem

static function fromAssertion(assertion: string): ClientAssertion

Parametry

assertion

string

Odkazovat https://tools.ietf.org/html/rfc7521

Návraty

fromCertificate(string, string, string)

Upozornění

Toto rozhraní API je teď zastaralé.

Use fromCertificateWithSha256Thumbprint instead, with a SHA-256 thumprint Initialize the ClientAssertion class from the certificate passed by the user

static function fromCertificate(thumbprint: string, privateKey: string, publicCertificate?: string): ClientAssertion

Parametry

thumbprint

string

identifikátor certifikátu

privateKey

string

tajný klíč

publicCertificate

string

elektronický dokument poskytnutý k prokázání vlastnictví veřejného klíče

Návraty

fromCertificateWithSha256Thumbprint(string, string, string)

Inicializace třídy ClientAssertion z certifikátu předaného uživatelem

static function fromCertificateWithSha256Thumbprint(thumbprint: string, privateKey: string, publicCertificate?: string): ClientAssertion

Parametry

thumbprint

string

identifikátor certifikátu

privateKey

string

tajný klíč

publicCertificate

string

elektronický dokument poskytnutý k prokázání vlastnictví veřejného klíče

Návraty

getJwt(CryptoProvider, string, string)

Aktualizujte JWT pro klienta na základě certifikátů, pokud ho předá uživatel, použije ho tak, jak je

function getJwt(cryptoProvider: CryptoProvider, issuer: string, jwtAudience: string): string

Parametry

cryptoProvider
CryptoProvider

pomocná rutina kryptografických knihoven

issuer

string

iss claim

jwtAudience

string

aud claim

Návraty

string

parseCertificate(string)

Extrahuje nezpracované certifikáty z daného řetězce certifikátu a vrátí je v poli.

static function parseCertificate(publicCertificate: string): string[]

Parametry

publicCertificate

string

elektronický dokument poskytnutý k prokázání vlastnictví veřejného klíče

Návraty

string[]