[−][src]Trait openidconnect::PrivateSigningKey
Private or symmetric key for signing.
Required methods
fn sign(
&self,
signature_alg: &JS,
message: &[u8]
) -> Result<Vec<u8>, SigningError>
&self,
signature_alg: &JS,
message: &[u8]
) -> Result<Vec<u8>, SigningError>
Signs the given message
using the given signature algorithm.
fn as_verification_key(&self) -> K
Converts this key to a JSON Web Key that can be used for verifying signatures.
Implementors
impl PrivateSigningKey<CoreJwsSigningAlgorithm, CoreJsonWebKeyType, CoreJsonWebKeyUse, CoreJsonWebKey> for CoreHmacKey
[src]
fn sign(
&self,
signature_alg: &CoreJwsSigningAlgorithm,
message: &[u8]
) -> Result<Vec<u8>, SigningError>
[src]
&self,
signature_alg: &CoreJwsSigningAlgorithm,
message: &[u8]
) -> Result<Vec<u8>, SigningError>
fn as_verification_key(&self) -> CoreJsonWebKey
[src]
impl PrivateSigningKey<CoreJwsSigningAlgorithm, CoreJsonWebKeyType, CoreJsonWebKeyUse, CoreJsonWebKey> for CoreRsaPrivateSigningKey
[src]
fn sign(
&self,
signature_alg: &CoreJwsSigningAlgorithm,
msg: &[u8]
) -> Result<Vec<u8>, SigningError>
[src]
&self,
signature_alg: &CoreJwsSigningAlgorithm,
msg: &[u8]
) -> Result<Vec<u8>, SigningError>