Documentation ¶
Index ¶
- func DecodeJWT(tokenReader io.Reader, isJWS, isJWE bool, opts *VerificationOptions) (interface{}, interface{}, error)
- func EncodeJWT(jsonReader io.Reader, opts *EncodingOptions) (string, error)
- func ReadEncryptionKey(u *url.URL) (jose.KeyAlgorithm, jose.ContentEncryption, crypto.PublicKey, crypto.PrivateKey, ...)
- func ReadSigningKey(u *url.URL) (jose.SignatureAlgorithm, crypto.PublicKey, crypto.PrivateKey, error)
- type DecryptionKeyProviderFunc
- type EncodingOptions
- type JSONWebKeySetProviderFunc
- type VerificationOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeJWT ¶
func DecodeJWT(tokenReader io.Reader, isJWS, isJWE bool, opts *VerificationOptions) (interface{}, interface{}, error)
func ReadEncryptionKey ¶
func ReadSigningKey ¶
Types ¶
type DecryptionKeyProviderFunc ¶
type DecryptionKeyProviderFunc func() (interface{}, error)
func DecryptionKeyHandlerFunc ¶
func DecryptionKeyHandlerFunc(u *url.URL) DecryptionKeyProviderFunc
type EncodingOptions ¶
type EncodingOptions struct { SignatureAlgorithm jose.SignatureAlgorithm SigningKey crypto.PrivateKey EncryptionKeyAlgorithm jose.KeyAlgorithm EncryptionContentAlgorithm jose.ContentEncryption EncryptionKey crypto.PublicKey KeyId string }
func (*EncodingOptions) String ¶
func (eopts *EncodingOptions) String() string
type JSONWebKeySetProviderFunc ¶
type JSONWebKeySetProviderFunc func() (*jose.JSONWebKeySet, error)
func JkwsHandlerFunc ¶
func JkwsHandlerFunc(u *url.URL) JSONWebKeySetProviderFunc
type VerificationOptions ¶
type VerificationOptions struct { JkwsFunc JSONWebKeySetProviderFunc DecryptionKeyFunc DecryptionKeyProviderFunc }
Click to show internal directories.
Click to hide internal directories.