Beispiel #1
0
 private FidoRegistrationData(FidoPublicKey userPublicKey, FidoKeyHandle keyHandle,
                              FidoAttestationCertificate attestationCertificate,
                              FidoSignature signature)
 {
     UserPublicKey          = userPublicKey;
     KeyHandle              = keyHandle;
     AttestationCertificate = attestationCertificate;
     Signature              = signature;
 }
Beispiel #2
0
        public FidoDeviceRegistration(FidoKeyHandle keyHandle, FidoPublicKey publicKey, FidoAttestationCertificate certificate, uint counter)
        {
            if (keyHandle == null)
            {
                throw new ArgumentNullException("keyHandle");
            }
            if (publicKey == null)
            {
                throw new ArgumentNullException("publicKey");
            }
            if (certificate == null)
            {
                throw new ArgumentNullException("certificate");
            }

            KeyHandle   = keyHandle;
            PublicKey   = publicKey;
            Certificate = certificate;
            Counter     = counter;
        }
Beispiel #3
0
 public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 {
     return(FidoPublicKey.FromWebSafeBase64(reader.Value.ToString()));
 }