Documentation
¶
Index ¶
Constants ¶
View Source
const ( JwsProtectedKey contextKey = "jws_protected" AccountIDKey contextKey = "account_id" DecodedPayloadKey contextKey = "decoded_payload" )
Variables ¶
This section is empty.
Functions ¶
func JWSVerificationMiddleware ¶
JWSVerificationMiddleware verifies the JWS signature of ACME requests
Types ¶
type JWSHeader ¶
type JWSHeader struct { Alg string `json:"alg"` // The algorithm used for the signature Nonce string `json:"nonce"` // The nonce value URL string `json:"url"` // The request URL Kid string `json:"kid,omitempty"` // Key identifier (for existing accounts) Jwk interface{} `json:"jwk,omitempty"` // JWK (for new accounts) }
JWSHeader represents the protected header of a JWS
type JWSRequest ¶
type JWSRequest struct { Protected string `json:"protected"` // Base64URL(UTF8(JWS Protected Header)) Payload string `json:"payload"` // Base64URL(JWS Payload) Signature string `json:"signature"` // Base64URL(JWS Signature) }
JWSRequest represents a JWS request structure
type MemoryNonceStore ¶
type MemoryNonceStore struct {
// contains filtered or unexported fields
}
func NewMemoryNonceStore ¶
func NewMemoryNonceStore() *MemoryNonceStore
func (*MemoryNonceStore) CleanExpired ¶
func (s *MemoryNonceStore) CleanExpired() error
func (*MemoryNonceStore) StoreNonce ¶
func (s *MemoryNonceStore) StoreNonce(nonce string) error
func (*MemoryNonceStore) ValidateAndRemove ¶
func (s *MemoryNonceStore) ValidateAndRemove(nonce string) error
Click to show internal directories.
Click to hide internal directories.