Example #1
0
 void SetExponent(byte[] exp)
 {
     e = Base64UrlEncoder.Encode(exp);
 }
Example #2
0
 void SetX5t(X509Certificate2 cert)
 {
     x5t = Base64UrlEncoder.Encode(ToByteArray(cert.Thumbprint));
 }
Example #3
0
 void SetX5t256(X509Certificate2 cert)
 {
     x5t_S256 = Base64UrlEncoder.Encode(Utils.Sha256Thumbprint(cert));
 }
Example #4
0
 void SetModulus(byte[] modulus)
 {
     n = Base64UrlEncoder.Encode(modulus);
 }