Beispiel #1
0
 public void EnsureDefaultValues()
 {
     // FIXME: Provide better default values
     if (CertificateTypes.Count == 0)
     {
         CertificateTypes.Add(ClientCertificateType.RsaSign);
     }
     if (SignatureAndHashAlgorithms.Count == 0)
     {
         SignatureAndHashAlgorithms.Add(new SignatureAndHashAlgorithm(HashAlgorithmType.Sha512, SignatureAlgorithmType.Rsa));
         SignatureAndHashAlgorithms.Add(new SignatureAndHashAlgorithm(HashAlgorithmType.Sha384, SignatureAlgorithmType.Rsa));
         SignatureAndHashAlgorithms.Add(new SignatureAndHashAlgorithm(HashAlgorithmType.Sha256, SignatureAlgorithmType.Rsa));
         SignatureAndHashAlgorithms.Add(new SignatureAndHashAlgorithm(HashAlgorithmType.Sha1, SignatureAlgorithmType.Rsa));
     }
 }
 public void Add(HashAlgorithmType hash, SignatureAlgorithmType signature)
 {
     SignatureAndHashAlgorithms.Add(new SignatureAndHashAlgorithm(hash, signature));
 }
 public void Add(SignatureAndHashAlgorithm algorithm)
 {
     SignatureAndHashAlgorithms.Add(algorithm);
 }