signature_validator

package
v2.9.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2020 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Hasher

type Hasher interface {
	Name() string
	Hash(token string, sharedSecret string, timeStamp int64) []byte
}

type MasheryMd5sum

type MasheryMd5sum struct{}

func (MasheryMd5sum) Hash

func (m MasheryMd5sum) Hash(token string, sharedSecret string, timeStamp int64) []byte

func (MasheryMd5sum) Name

func (m MasheryMd5sum) Name() string

type MasherySha256Sum

type MasherySha256Sum struct{}

func (MasherySha256Sum) Hash

func (m MasherySha256Sum) Hash(token string, sharedSecret string, timeStamp int64) []byte

func (MasherySha256Sum) Name

func (m MasherySha256Sum) Name() string

type SignatureValidator

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

func (*SignatureValidator) Init

func (v *SignatureValidator) Init(hasherName string) error

func (SignatureValidator) Validate

func (v SignatureValidator) Validate(signature, key, secret string, allowedClockSkew int64) error

type Validator

type Validator interface {
	Init(hasherName string) error
	Validate(attempt, actual string, allowedClockSkew int64) error
}

Jump to

Keyboard shortcuts

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