// Copyright 2020 De Staat der Nederlanden, Ministerie van Volksgezondheid, Welzijn en Sport.
// Licensed under the EUROPEAN UNION PUBLIC LICENCE v. 1.2
// SPDX-License-Identifier: EUPL-1.2

using Microsoft.Extensions.Configuration;
using NL.Rijksoverheid.ExposureNotification.BackEnd.Core;

namespace NL.Rijksoverheid.ExposureNotification.BackEnd.Crypto.Certificates
{
    public class HsmSignerConfig : AppSettingsReader, IHsmSignerConfig
    {
        public HsmSignerConfig(IConfiguration config, string prefix = null) : base(config, prefix)
        {
        }

        public string BaseAddress => GetConfigValue(nameof(BaseAddress), string.Empty);
        public string CmsJwt => GetConfigValue(nameof(CmsJwt), string.Empty);
        public string GaenJwt => GetConfigValue(nameof(GaenJwt), string.Empty);
        public string EfgsJwt => GetConfigValue(nameof(EfgsJwt), string.Empty);
        public string CmsPublicCertificateChain => GetConfigValue(nameof(CmsPublicCertificateChain), string.Empty);
        public string GaenPublicCertificate => GetConfigValue(nameof(GaenPublicCertificate), string.Empty);
        public string EfgsPublicCertificate => GetConfigValue(nameof(EfgsPublicCertificate), string.Empty);
    }
}
