/// Creates a Thumbprint of the JSON Web Key according to [RFC7638](https://tools.ietf.org/html/rfc7638).
///
/// `SHA2-256` is used as the hash function *H*.
///
/// The thumbprint is returned as an unencoded vector of bytes.
Creates a Thumbprint of the JSON Web Key according to [RFC7638].
`SHA2-256` is used as the hash function *H*.

The thumbprint is returned as an unencoded vector of bytes.
Creates a Thumbprint of the JSON Web Key according to [ RFC7638 ] . ` SHA2 - 256 ` is used as the hash function * H * . The thumbprint is returned as an unencoded vector of bytes .
pub fn thumbprint_raw(&self) -> Result<JwkThumbprint> {
    let kty: &str = self.kty.name();
    let json: String = match self.params() {
      JwkParams::Ec(JwkParamsEc { crv, x, y, .. }) => {
        format!(r#"{{"crv":"{}","kty":"{}","x":"{}","y":"{}"}}"#, crv, kty, x, y)
      }
      JwkParams::Rsa(JwkParamsRsa { e, n, .. }) => {
        format!(r#"{{"e":"{}","kty":"{}","n":"{}"}}"#, e, kty, n)
      }
      JwkParams::Oct(JwkParamsOct { k }) => {
        format!(r#"{{"k":"{}","kty":"{}"}}"#, k, kty)
      }
      JwkParams::Okp(JwkParamsOkp { crv, x, .. }) => {
        format!(r#"{{"crv":"{}","kty":"{}","x":"{}"}}"#, crv, kty, x)
      }
    };
    let mut out: JwkThumbprint = Default::default();
    SHA256(json.as_bytes(), &mut out);
    Ok(out)
  }
pub fn thumbprint_raw ( & self ) -> Result < JwkThumbprint > { let kty : & str = self . kty . name ( ) ; let json : String = match self . params ( ) { JwkParams :: Ec ( JwkParamsEc { crv , x , y , .. } ) => { format ! ( r#"{{"crv":"{}","kty":"{}","x":"{}","y":"{}"}}"# crv kty x y ) } JwkParams :: Rsa ( JwkParamsRsa { e , n , .. } ) => { format ! ( r#"{{"e":"{}","kty":"{}","n":"{}"}}"# e kty n ) } JwkParams :: Oct ( JwkParamsOct { k } ) => { format ! ( r#"{{"k":"{}","kty":"{}"}}"# k kty ) } JwkParams :: Okp ( JwkParamsOkp { crv , x , .. } ) => { format ! ( r#"{{"crv":"{}","kty":"{}","x":"{}"}}"# crv kty x ) } } ; let mut out : JwkThumbprint = Default :: default ( ) ; SHA256 ( json . as_bytes ( ) , & mut out ) ; Ok ( out ) }
Creates a Thumbprint of the JSON Web Key according to [RFC7638](https://tools.ietf.org/html/rfc7638).
Creates a Thumbprint of the JSON Web Key according to [ RFC7638 ] ( https : // tools . ietf . org / html / rfc7638 ) .
&self