signer

package
v0.0.0-...-cbea63e Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2021 License: Apache-2.0, MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sign

func Sign(t *domain.Token) (*domain.Token, error)

Sign wraps defaultInstance.Sign

func Verify

func Verify(t *domain.Token) bool

Verify wraps defaultInstance.Verify

Types

type Signer

type Signer interface {
	// Sign returns a new, signed version of the passed token. Will block if keys are not yet loaded.
	Sign(t *domain.Token) (*domain.Token, error)
	// Verify verifies a token's signature is as expected. Will block if keys are not yet loaded.
	Verify(t *domain.Token) bool
}

Jump to

Keyboard shortcuts

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