C# 클래스 ACMESharp.AcmeClient

The ACME client encapsulates all the protocol rules to interact with an ACME client as specified by the ACME specficication.
상속: IDisposable
파일 보기 프로젝트 열기: ebekker/ACMESharp 1 사용 예제들

공개 메소드들

메소드 설명
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