signer

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HMAC

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

HMAC implements Signer with HMAC.

func NewHS256

func NewHS256() *HMAC

NewHS256 returns new HMAC Signer using SHA256.

func NewHS384

func NewHS384() *HMAC

NewHS384 returns new HMAC Signer using SHA384.

func NewHS512

func NewHS512() *HMAC

NewHS512 returns new HMAC Signer using HS512.

func (*HMAC) GetAlgorithmID

func (h *HMAC) GetAlgorithmID() jwtee.Algorithm

GetAlgorithmID inherited from Signer.

func (*HMAC) Sign

func (h *HMAC) Sign(payload []byte, key jwtee.Key) ([]byte, error)

Sign inherited from Signer.

func (*HMAC) Verify

func (h *HMAC) Verify(expected, payload []byte, key jwtee.Key) error

Verify inherited from Signer.

Jump to

Keyboard shortcuts

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