/* * Copyright (c) 2024 ETH Zürich, IT Services * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ using System.Security.Cryptography.X509Certificates; namespace SafeExamBrowser.Configuration.Contracts.Cryptography { /// /// Holds all parameters for data encryption by certificate. /// public class PublicKeyParameters : EncryptionParameters { /// /// The certificate holding the public key used for encryption. /// public X509Certificate2 Certificate { get; set; } /// /// The encryption parameters of the inner data, if available. /// public PasswordParameters InnerEncryption { get; set; } /// /// Determines the usage of symmetric vs. asymmetric encryption. /// public bool SymmetricEncryption { get; set; } } }