/// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (CertificatePolicy != null)
     {
         CertificatePolicy.Validate();
     }
 }
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (Base64EncodedCertificate == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "Base64EncodedCertificate");
     }
     if (CertificatePolicy != null)
     {
         CertificatePolicy.Validate();
     }
 }