jwk

package
v0.0.0-...-f270e70 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IJWKRepository

type IJWKRepository interface {
	Create(now time.Time) error
	GetLatestKey(now time.Time) (*jwx_repository.JWK, error)
	GetValidKeySet(now time.Time) (jwk.Set, error)
	DeleteOldKey(now time.Time) error
}

type JWKUsecase

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

func NewJWKUsecase

func NewJWKUsecase(c *bigcache.BigCache, r IJWKRepository) *JWKUsecase

func (*JWKUsecase) GetIssuedAt

func (u *JWKUsecase) GetIssuedAt(now time.Time, token string, blogKey string) *time.Time

func (*JWKUsecase) GetLatestKey

func (u *JWKUsecase) GetLatestKey(now time.Time) (jwk.Key, error)

func (*JWKUsecase) GetValidKeySet

func (u *JWKUsecase) GetValidKeySet(now time.Time) (jwk.Set, error)

func (*JWKUsecase) New

func (u *JWKUsecase) New(now time.Time, blogKey string) (*string, error)

func (*JWKUsecase) RotateKey

func (u *JWKUsecase) RotateKey(now time.Time) error

Jump to

Keyboard shortcuts

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