private void ValidateKeyCredential(KeyCredential credential)
{
if (credential == null || string.IsNullOrEmpty(credential.KeyId) || string.IsNullOrEmpty(credential.Value) ||
string.IsNullOrEmpty(credential.Type) || string.IsNullOrEmpty(credential.Usage) || credential.StartDate == null || credential.EndDate == null)
{
throw new InvalidOperationException(ProjectResources.KeyCredentialNotValid);
}
}