Beispiel #1
0
 /// <summary>
 /// Retrieves current account information. This API call must be specifically
 /// enabled by support request and isn't part of the documented API.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <GetAccountInfoOKResponse> GetAccountInfoAsync(this IDigicertRetailAPI operations, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetAccountInfoWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Retrieve the certificate once the order has been processed and certificate
 /// issued
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='orderId'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IssuedCertificate> GetIssuedCertificateAsync(this IDigicertRetailAPI operations, string orderId, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetIssuedCertificateWithHttpMessagesAsync(orderId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #3
0
 /// <summary>
 /// View order status and other details
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='orderId'>
 /// </param>
 public static OrderDetail GetOrder(this IDigicertRetailAPI operations, string orderId)
 {
     return(operations.GetOrderAsync(orderId).GetAwaiter().GetResult());
 }
Beispiel #4
0
 /// <summary>
 /// Create a pending order for a new SSL Certificate
 /// <see href="https://www.digicert.com/clients/rest/docs/retail/order/ssl-certificate" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='request'>
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <OrderCertificateCreatedResponse> OrderCertificateAsync(this IDigicertRetailAPI operations, CertificateOrderRequest request, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.OrderCertificateWithHttpMessagesAsync(request, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #5
0
 /// <summary>
 /// Create a pending order for a new SSL Certificate
 /// <see href="https://www.digicert.com/clients/rest/docs/retail/order/ssl-certificate" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='request'>
 /// </param>
 public static OrderCertificateCreatedResponse OrderCertificate(this IDigicertRetailAPI operations, CertificateOrderRequest request)
 {
     return(operations.OrderCertificateAsync(request).GetAwaiter().GetResult());
 }
Beispiel #6
0
 /// <summary>
 /// Retrieves current account information. This API call must be specifically
 /// enabled by support request and isn't part of the documented API.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static GetAccountInfoOKResponse GetAccountInfo(this IDigicertRetailAPI operations)
 {
     return(operations.GetAccountInfoAsync().GetAwaiter().GetResult());
 }
Beispiel #7
0
 /// <summary>
 /// Retrieve the certificate once the order has been processed and certificate
 /// issued
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='orderId'>
 /// </param>
 public static IssuedCertificate GetIssuedCertificate(this IDigicertRetailAPI operations, string orderId)
 {
     return(operations.GetIssuedCertificateAsync(orderId).GetAwaiter().GetResult());
 }
Beispiel #8
0
 /// <summary>
 /// Updates the certificate based on the provided information. Rekeying a
 /// certificate is accomplishjed by the key being the only change made.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='orderId'>
 /// </param>
 /// <param name='request'>
 /// </param>
 public static ReissueCertificateResponse ReissueCertificate(this IDigicertRetailAPI operations, string orderId, ReissueCertificateRequest request)
 {
     return(operations.ReissueCertificateAsync(orderId, request).GetAwaiter().GetResult());
 }