Documentation ¶
Index ¶
- func GenerateSignature(jwsHeader *JwsHeader, httpHeaders map[string]string, ...) (string, error)
- type JwsHeader
- func (jh *JwsHeader) WithB64(b64 bool) *JwsHeader
- func (jh *JwsHeader) WithCertificate(certificate x509.Certificate) *JwsHeader
- func (jh *JwsHeader) WithClaimedTime(claimedTime time.Time) *JwsHeader
- func (jh *JwsHeader) WithCrit(criticalFields []string) *JwsHeader
- func (jh *JwsHeader) WithSignedHeaders(headers []string) *JwsHeader
- func (jh *JwsHeader) WithSigningAlgorithm(algorithm string) *JwsHeader
- type SignedHeaders
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSignature ¶
Types ¶
type JwsHeader ¶
type JwsHeader struct { B64 bool `json:"b64"` S256 string `json:"x5t#S256"` Crit []string `json:"crit"` SigT string `json:"sigT"` SigD SignedHeaders `json:"sigD"` Alg string `json:"alg"` }
func DefaultJwsHeader ¶
func DefaultJwsHeader() *JwsHeader
func (*JwsHeader) WithCertificate ¶
func (jh *JwsHeader) WithCertificate(certificate x509.Certificate) *JwsHeader
func (*JwsHeader) WithClaimedTime ¶
func (*JwsHeader) WithSignedHeaders ¶
func (*JwsHeader) WithSigningAlgorithm ¶
type SignedHeaders ¶
Click to show internal directories.
Click to hide internal directories.