Documentation ¶
Index ¶
- func Decrypt(ctx oidc.Context, jwe string, keyAlgs []goidc.KeyEncryptionAlgorithm, ...) (string, error)
- func Encrypt(jws string, jwk goidc.JSONWebKey, cntAlg goidc.ContentEncryptionAlgorithm) (string, error)
- func IsJWE(token string) bool
- func IsJWS(token string) bool
- func IsUnsignedJWT(token string) bool
- func Sign(ctx oidc.Context, claims map[string]any, alg goidc.SignatureAlgorithm, ...) (string, error)
- func SignWithJWK(claims any, jwk goidc.JSONWebKey, opts *jose.SignerOptions) (string, error)
- func Unsigned(claims map[string]any) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
func Decrypt( ctx oidc.Context, jwe string, keyAlgs []goidc.KeyEncryptionAlgorithm, contentAlgs []goidc.ContentEncryptionAlgorithm, ) ( string, error, )
func Encrypt ¶
func Encrypt( jws string, jwk goidc.JSONWebKey, cntAlg goidc.ContentEncryptionAlgorithm, ) ( string, error, )
func IsUnsignedJWT ¶
func SignWithJWK ¶
func SignWithJWK( claims any, jwk goidc.JSONWebKey, opts *jose.SignerOptions, ) ( string, error, )
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.