types

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyFetcher

type KeyFetcher interface {
	GetKeys() (jwk.Set, error)
	Stop()
}

type SignerInterceptor

type SignerInterceptor struct {
	// contains filtered or unexported fields
}

func (*SignerInterceptor) Algorithm

func (s *SignerInterceptor) Algorithm() jwa.SignatureAlgorithm

func (*SignerInterceptor) CreateInterceptor

func (s *SignerInterceptor) CreateInterceptor(
	alg jwa.SignatureAlgorithm,
	cryptoprovider cryptoCore.CryptoProvider, sign bool, verify bool)

func (*SignerInterceptor) CreateSignerInterceptor

func (s *SignerInterceptor) CreateSignerInterceptor() (jws.Signer, error)

func (*SignerInterceptor) CreateVerifyInterceptor

func (s *SignerInterceptor) CreateVerifyInterceptor() (jws.Verifier, error)

func (*SignerInterceptor) Sign

func (s *SignerInterceptor) Sign(payload []byte, keyif interface{}) ([]byte, error)

func (*SignerInterceptor) Verify

func (s *SignerInterceptor) Verify(payload []byte, signature []byte, keyif interface{}) error

Jump to

Keyboard shortcuts

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