token

package
v0.0.0-...-78e7222 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWTGenerator

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

func NewJWTGenerator

func NewJWTGenerator(privateRSAKey *rsa.PrivateKey) JWTGenerator

func (JWTGenerator) GenerateToken

func (g JWTGenerator) GenerateToken(claimsToWrap claims2.Claims) (string, error)

type JWTValidator

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

func NewJWTValidator

func NewJWTValidator(rsaPublicKey *rsa.PublicKey) JWTValidator

func (*JWTValidator) ValidateJWT

func (jwtv *JWTValidator) ValidateJWT(jwt string) (wrappedClaims.Wrapped, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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