C# Класс ACMESharp.AcmeClient

The ACME client encapsulates all the protocol rules to interact with an ACME client as specified by the ACME specficication.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AcmeClient ( Uri rootUrl = null, AcmeServerDirectory dir = null, ISigner signer = null, ACMESharp.AcmeRegistration reg = null ) : System
AuthorizeIdentifier ( string dnsIdentifier ) : AuthorizationState
DecodeChallenge ( AuthorizationState authzState, string challengeType ) : AuthorizeChallenge
Dispose ( ) : void
GetDirectory ( bool saveRelative = false ) : AcmeServerDirectory
HandleChallenge ( AuthorizationState authzState, string challengeType, string handlerName, object>.IReadOnlyDictionary handlerParams, bool cleanUp = false ) : AuthorizeChallenge
Init ( ) : void
RefreshAuthorizeChallenge ( AuthorizationState authzState, string type, bool useRootUrl = false ) : void
RefreshCertificateRequest ( ACMESharp.CertificateRequest certRequ, bool useRootUrl = false ) : void
RefreshIdentifierAuthorization ( AuthorizationState authzState, bool useRootUrl = false ) : AuthorizationState
Register ( string contacts ) : ACMESharp.AcmeRegistration
RequestCertificate ( string csrContent ) : ACMESharp.CertificateRequest
SubmitChallengeAnswer ( AuthorizationState authzState, string type, bool useRootUrl = false ) : AuthorizeChallenge
UpdateRegistration ( bool useRootUrl = false, bool agreeToTos = false, string contacts = null ) : ACMESharp.AcmeRegistration

Защищенные методы

Метод Описание
AssertInit ( ) : void
AssertRegistration ( ) : void

Приватные методы

Метод Описание
ComputeAcmeSigned ( object message, ISigner signer ) : string

Computes the JWS-signed ACME request body for the given message object and signer instance.

ExtractNonce ( WebResponse resp ) : void

Extracts the next ACME protocol nonce from the argument Web response and remembers it for the next protocol request.

GenerateAuthorizeChallengeAnswer ( AuthorizationState authzState, string type ) : AuthorizeChallenge
RequestHttpGet ( Uri uri ) : AcmeHttpResponse
RequestHttpPost ( Uri uri, object message ) : AcmeHttpResponse

Submits an ACME protocol request via an HTTP POST with the necessary semantics and protocol details. The result is a simplified and canonicalized response object capturing the error state, HTTP response headers and content of the response body.

SubmitAuthorizeChallengeAnswer ( AuthorizationState authzState, string challengeType, bool useRootUrl = false ) : AuthorizeChallenge

Описание методов

AcmeClient() публичный Метод

public AcmeClient ( Uri rootUrl = null, AcmeServerDirectory dir = null, ISigner signer = null, ACMESharp.AcmeRegistration reg = null ) : System
rootUrl System.Uri
dir AcmeServerDirectory
signer ISigner
reg ACMESharp.AcmeRegistration
Результат System

AssertInit() защищенный Метод

protected AssertInit ( ) : void
Результат void

AssertRegistration() защищенный Метод

protected AssertRegistration ( ) : void
Результат void

AuthorizeIdentifier() публичный Метод

public AuthorizeIdentifier ( string dnsIdentifier ) : AuthorizationState
dnsIdentifier string
Результат AuthorizationState

DecodeChallenge() публичный Метод

public DecodeChallenge ( AuthorizationState authzState, string challengeType ) : AuthorizeChallenge
authzState AuthorizationState
challengeType string
Результат AuthorizeChallenge

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GetDirectory() публичный Метод

public GetDirectory ( bool saveRelative = false ) : AcmeServerDirectory
saveRelative bool
Результат AcmeServerDirectory

HandleChallenge() публичный Метод

public HandleChallenge ( AuthorizationState authzState, string challengeType, string handlerName, object>.IReadOnlyDictionary handlerParams, bool cleanUp = false ) : AuthorizeChallenge
authzState AuthorizationState
challengeType string
handlerName string
handlerParams object>.IReadOnlyDictionary
cleanUp bool
Результат AuthorizeChallenge

Init() публичный Метод

public Init ( ) : void
Результат void

RefreshAuthorizeChallenge() публичный Метод

public RefreshAuthorizeChallenge ( AuthorizationState authzState, string type, bool useRootUrl = false ) : void
authzState AuthorizationState
type string
useRootUrl bool
Результат void

RefreshCertificateRequest() публичный Метод

public RefreshCertificateRequest ( ACMESharp.CertificateRequest certRequ, bool useRootUrl = false ) : void
certRequ ACMESharp.CertificateRequest
useRootUrl bool
Результат void

RefreshIdentifierAuthorization() публичный Метод

public RefreshIdentifierAuthorization ( AuthorizationState authzState, bool useRootUrl = false ) : AuthorizationState
authzState AuthorizationState
useRootUrl bool
Результат AuthorizationState

Register() публичный Метод

public Register ( string contacts ) : ACMESharp.AcmeRegistration
contacts string
Результат ACMESharp.AcmeRegistration

RequestCertificate() публичный Метод

public RequestCertificate ( string csrContent ) : ACMESharp.CertificateRequest
csrContent string
Результат ACMESharp.CertificateRequest

SubmitChallengeAnswer() публичный Метод

public SubmitChallengeAnswer ( AuthorizationState authzState, string type, bool useRootUrl = false ) : AuthorizeChallenge
authzState AuthorizationState
type string
useRootUrl bool
Результат AuthorizeChallenge

UpdateRegistration() публичный Метод

public UpdateRegistration ( bool useRootUrl = false, bool agreeToTos = false, string contacts = null ) : ACMESharp.AcmeRegistration
useRootUrl bool
agreeToTos bool
contacts string
Результат ACMESharp.AcmeRegistration