signing

package
v0.0.0-...-378dc36 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WEAK = iota
	MODERATE
	STRONG
)

Variables

View Source
var (
	ErrorsSigning              = errorx.NewNamespace("ISigning")
	ErrorSigningMethodNotFound = errorx.NewType(ErrorsSigning, "Method not found")
)

Functions

This section is empty.

Types

type HMAC

type HMAC struct {
	Signing Method
}

func NewHMAC

func NewHMAC(typ int) *HMAC

func (*HMAC) Method

func (h *HMAC) Method() Method

type ISigning

type ISigning interface {
	Method() Method
}

type Method

type Method jwt.SigningMethod

func GetMethod

func GetMethod(name string) Method

type RSA

type RSA struct {
	Signing Method
}

func NewRSA

func NewRSA(typ int) *RSA

func (*RSA) Method

func (r *RSA) Method() Method

Jump to

Keyboard shortcuts

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