in Notation.Plugin.AzureKeyVault/Protocol/GenerateSignature.cs [95:125]
public GenerateSignatureResponse(
string keyId,
byte[] signature,
string signingAlgorithm,
List<byte[]> certificateChain)
{
if (string.IsNullOrEmpty(keyId))
{
throw new ArgumentNullException(nameof(keyId), "KeyId must not be null or empty");
}
if (signature == null || signature.Length == 0)
{
throw new ArgumentNullException(nameof(signature), "Signature must not be null or empty");
}
if (string.IsNullOrEmpty(signingAlgorithm))
{
throw new ArgumentNullException(nameof(signingAlgorithm), "SigningAlgorithm must not be null or empty");
}
if (certificateChain == null || certificateChain.Count == 0)
{
throw new ArgumentNullException(nameof(certificateChain), "CertificateChain must not be null or empty");
}
KeyId = keyId;
Signature = signature;
SigningAlgorithm = signingAlgorithm;
CertificateChain = certificateChain;
}