package
0.1.5
Repository: https://github.com/jsthtlf/go-pam-sdk.git
Documentation: pkg.go.dev

# Functions

NewCustomRequestSigner creates a new RequestSigner with a custom signing algorithm.
NewRequestSigner creates a new RequestSigner with the given keyID, key, and algorithm.
ParseRequest parses an http.Request and returns a ParsedSignature with the values from the Authorization Header.
VerifySignature takes a ParsedSignature and a public key, and validates that the signature was signed with the given algorithm and a corresponding private key.

# Variables

DefaultClockSkew specifies the allowed time difference between requests and signature parsing.
DefaultHeaders specify the headers to be parsed by default.
ParseStrict specifies sprict parsing.
SignStrict specifies strict signing.

# Structs

ParsedSignature contains the details of a parsed signature.
RequestSigner contains the SignRequest method which signs a request and populates the Authorization Header.

# Type aliases

A Signer is a function that takes a signing string, and returns a byte array containing the signature.