jwe

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateJWE

func CreateJWE(payload []byte, recipient *rsa.PublicKey) (string, error)

func DecryptIDToken

func DecryptIDToken(jweHandler *Handler, JWTSession *openidConnect.Session) error

func GenerateMockPrivateKey

func GenerateMockPrivateKey() (*tls.Certificate, error)

Types

type Handler

type Handler struct {
	Enabled            bool             `json:"Enabled"`
	PrivateKeyLocation string           `json:"PrivateKeyLocation"`
	Key                *tls.Certificate `json:"-"`
}

func (*Handler) Decrypt

func (handler *Handler) Decrypt(token string) (string, error)

Jump to

Keyboard shortcuts

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