Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReaderFunc ¶
ReaderFunc allows regular function with a proper signature to be used as a Reader.
func HMAC ¶
func HMAC(secretString string) ReaderFunc
HMAC creates simple JWT validator with provided secret string.
func RSA ¶
func RSA(publicKey *rsa.PublicKey) ReaderFunc
RSA creates a JWT validator with provided public key.
Click to show internal directories.
Click to hide internal directories.