Skip to main content

import_client_assertion_key

Function import_client_assertion_key 

Source
pub fn import_client_assertion_key(
    alg: SigningAlgorithm,
    key: PrivateKeyInput,
    kid: Option<String>,
) -> Result<ClientAssertionKey, AuthError>
Expand description

Load a private key for private_key_jwt: a private JWK or a PKCS#8 PEM.

Only RS256 (RSA, 2048 bits or more), PS256 (the same) and ES256 (P-256) are accepted, and a key must be a private key of the matching type.