예제 #1
0
 /// <summary>
 /// Initializes a new instance of the CertificatePolicy class.
 /// </summary>
 /// <param name="id">The certificate id</param>
 /// <param name="keyProperties">Properties of the key backing a
 /// certificate.</param>
 /// <param name="secretProperties">Properties of the secret backing a
 /// certificate.</param>
 /// <param name="x509CertificateProperties">Properties of the X509
 /// component of a certificate.</param>
 /// <param name="lifetimeActions">Actions that will be performed by
 /// Key Vault over the lifetime of a certificate.</param>
 /// <param name="issuerReference">Reference to the issuer of the X509
 /// component of a certificate.</param>
 /// <param name="attributes">The certificate attributes.</param>
 public CertificatePolicy(string id = default(string), KeyProperties keyProperties = default(KeyProperties), SecretProperties secretProperties = default(SecretProperties), X509CertificateProperties x509CertificateProperties = default(X509CertificateProperties), IList <LifetimeAction> lifetimeActions = default(IList <LifetimeAction>), IssuerReference issuerReference = default(IssuerReference), CertificateAttributes attributes = default(CertificateAttributes))
 {
     Id                        = id;
     KeyProperties             = keyProperties;
     SecretProperties          = secretProperties;
     X509CertificateProperties = x509CertificateProperties;
     LifetimeActions           = lifetimeActions;
     IssuerReference           = issuerReference;
     Attributes                = attributes;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the CertificatePolicy class.
 /// </summary>
 /// <param name="id">The certificate id.</param>
 /// <param name="keyProperties">Properties of the key backing a
 /// certificate.</param>
 /// <param name="secretProperties">Properties of the secret backing a
 /// certificate.</param>
 /// <param name="x509CertificateProperties">Properties of the X509
 /// component of a certificate.</param>
 /// <param name="lifetimeActions">Actions that will be performed by Key
 /// Vault over the lifetime of a certificate.</param>
 /// <param name="issuerParameters">Parameters for the issuer of the
 /// X509 component of a certificate.</param>
 /// <param name="attributes">The certificate attributes.</param>
 public CertificatePolicy(string id = default(string), KeyProperties keyProperties = default(KeyProperties), SecretProperties secretProperties = default(SecretProperties), X509CertificateProperties x509CertificateProperties = default(X509CertificateProperties), IList <LifetimeAction> lifetimeActions = default(IList <LifetimeAction>), IssuerParameters issuerParameters = default(IssuerParameters), CertificateAttributes attributes = default(CertificateAttributes))
 {
     Id                        = id;
     KeyProperties             = keyProperties;
     SecretProperties          = secretProperties;
     X509CertificateProperties = x509CertificateProperties;
     LifetimeActions           = lifetimeActions;
     IssuerParameters          = issuerParameters;
     Attributes                = attributes;
     CustomInit();
 }
예제 #3
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (X509CertificateProperties != null)
     {
         X509CertificateProperties.Validate();
     }
     if (LifetimeActions != null)
     {
         foreach (var element in LifetimeActions)
         {
             if (element != null)
             {
                 element.Validate();
             }
         }
     }
 }