bootstrap

package
v0.24.2-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2022 License: Apache-2.0 Imports: 3 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComputeDetachedSignature

func ComputeDetachedSignature(content, tokenID, tokenSecret string) (string, error)

ComputeDetachedSignature takes content and token details and computes a detached JWS signature. This is described in Appendix F of RFC 7515. Basically, this is a regular JWS with the content part of the signature elided.

func DetachedTokenIsValid

func DetachedTokenIsValid(detachedToken, content, tokenID, tokenSecret string) bool

DetachedTokenIsValid checks whether a given detached JWS-encoded token matches JWS output of the given content and token

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL