internal PsApiManagementHostnameCertificate(CertificateInformation value)
     : this()
 {
     Expiry = value.Expiry;
     Subject = value.Subject;
     Thumbprint = value.Thumbprint;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the HostnameConfigurationOld class.
 /// </summary>
 /// <param name="type">Hostname type. Possible values include: 'Proxy',
 /// 'Portal', 'Management', 'Scm'</param>
 /// <param name="hostname">Hostname to configure.</param>
 /// <param name="certificate">Certificate information.</param>
 public HostnameConfigurationOld(HostnameType type, string hostname, CertificateInformation certificate)
 {
     Type        = type;
     Hostname    = hostname;
     Certificate = certificate;
     CustomInit();
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the CertificateConfiguration class.
 /// </summary>
 /// <param name="storeName">The
 /// System.Security.Cryptography.x509certificates.StoreName certificate
 /// store location. Only Root and CertificateAuthority are valid
 /// locations. Possible values include: 'CertificateAuthority',
 /// 'Root'</param>
 /// <param name="encodedCertificate">Base64 Encoded
 /// certificate.</param>
 /// <param name="certificatePassword">Certificate Password.</param>
 /// <param name="certificate">Certificate information.</param>
 public CertificateConfiguration(string storeName, string encodedCertificate = default(string), string certificatePassword = default(string), CertificateInformation certificate = default(CertificateInformation))
 {
     EncodedCertificate  = encodedCertificate;
     CertificatePassword = certificatePassword;
     StoreName           = storeName;
     Certificate         = certificate;
     CustomInit();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the HostnameConfiguration class.
 /// </summary>
 /// <param name="type">Hostname type. Possible values include: 'Proxy',
 /// 'Portal', 'Management', 'Scm'</param>
 /// <param name="hostName">Hostname to configure on the Api Management
 /// service.</param>
 /// <param name="keyVaultId">Url to the KeyVault Secret containing the
 /// Ssl Certificate. If absolute Url containing version is provided,
 /// auto-update of ssl certificate will not work. This requires Api
 /// Management service to be configured with MSI. The secret should be
 /// of type *application/x-pkcs12*</param>
 /// <param name="encodedCertificate">Base64 Encoded
 /// certificate.</param>
 /// <param name="certificatePassword">Certificate Password.</param>
 /// <param name="defaultSslBinding">Specify true to setup the
 /// certificate associated with this Hostname as the Default SSL
 /// Certificate. If a client does not send the SNI header, then this
 /// will be the certificate that will be challenged. The property is
 /// useful if a service has multiple custom hostname enabled and it
 /// needs to decide on the default ssl certificate. The setting only
 /// applied to Proxy Hostname Type.</param>
 /// <param name="negotiateClientCertificate">Specify true to always
 /// negotiate client certificate on the hostname. Default Value is
 /// false.</param>
 /// <param name="certificate">Certificate information.</param>
 public HostnameConfiguration(HostnameType type, string hostName, string keyVaultId = default(string), string encodedCertificate = default(string), string certificatePassword = default(string), bool?defaultSslBinding = default(bool?), bool?negotiateClientCertificate = default(bool?), CertificateInformation certificate = default(CertificateInformation))
 {
     Type                       = type;
     HostName                   = hostName;
     KeyVaultId                 = keyVaultId;
     EncodedCertificate         = encodedCertificate;
     CertificatePassword        = certificatePassword;
     DefaultSslBinding          = defaultSslBinding;
     NegotiateClientCertificate = negotiateClientCertificate;
     Certificate                = certificate;
     CustomInit();
 }
 /// <summary>
 /// Initializes a new instance of the HostnameConfiguration class with
 /// required arguments.
 /// </summary>
 public HostnameConfiguration(HostnameType type, string hostname, CertificateInformation certificate)
     : this()
 {
     if (hostname == null)
     {
         throw new ArgumentNullException("hostname");
     }
     if (certificate == null)
     {
         throw new ArgumentNullException("certificate");
     }
     this.Type = type;
     this.Hostname = hostname;
     this.Certificate = certificate;
 }
 /// <summary>
 /// Initializes a new instance of the HostnameConfiguration class with
 /// required arguments.
 /// </summary>
 public HostnameConfiguration(HostnameType type, string hostname, CertificateInformation certificate)
     : this()
 {
     if (hostname == null)
     {
         throw new ArgumentNullException("hostname");
     }
     if (certificate == null)
     {
         throw new ArgumentNullException("certificate");
     }
     this.Type        = type;
     this.Hostname    = hostname;
     this.Certificate = certificate;
 }