tokensign

package
v0.10.3 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 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 SigningMethodCertStore

type SigningMethodCertStore struct {
	Name string
	Hash crypto.Hash
}

SigningMethodCertStore implements the RSA family of signing methods.

var (
	SigningMethodCert *SigningMethodCertStore
)

func (*SigningMethodCertStore) Alg

func (m *SigningMethodCertStore) Alg() string

func (*SigningMethodCertStore) Sign

func (m *SigningMethodCertStore) Sign(signingString string, key any) ([]byte, error)

Sign implements token signing for the SigningMethod For this signing method, must be an *rsa.PrivateKey structure.

func (*SigningMethodCertStore) Verify

func (m *SigningMethodCertStore) Verify(signingString string, sig []byte, key interface{}) error

Verify implements token verification for the SigningMethod For this signing method, must be an *rsa.PublicKey structure.

Jump to

Keyboard shortcuts

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