Exemple #1
0
        public HttpHsmSignatureProvider(string moduleId, string generationId, string providerUri, string apiVersion, string clientApiVersion)
        {
            Preconditions.CheckNotNull(providerUri, nameof(providerUri));
            Preconditions.CheckNonWhiteSpace(apiVersion, nameof(apiVersion));
            Preconditions.CheckNonWhiteSpace(clientApiVersion, nameof(clientApiVersion));
            Preconditions.CheckNonWhiteSpace(moduleId, nameof(moduleId));
            Preconditions.CheckNonWhiteSpace(generationId, nameof(generationId));

            this.workloadClient = new WorkloadClient(new Uri(providerUri), clientApiVersion, apiVersion, moduleId, generationId);
        }
 EncryptionProvider(Uri workloadUri, string apiVersion, string moduleId, string moduleGenerationid, string initializationVector)
 {
     this.initializationVector = initializationVector;
     this.workloadClient       = new WorkloadClient(workloadUri, apiVersion, moduleId, moduleGenerationid);
 }