Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBadSignature error = errors.New("bad signature")
ErrBadSignature : This error occurs when the signature values do not match.
View Source
var ErrExpired error = errors.New("expired token")
ErrExpired : Token has expired
Functions ¶
This section is empty.
Types ¶
type Signer ¶
type Signer struct { EXP int64 // contains filtered or unexported fields }
Signer : Signature generator
func (Signer) DecryptAndVerify ¶
DecryptAndVerify : Decrypt data and verify Signature
func (Signer) SignAndEncrypt ¶
SignAndEncrypt : Signs the input data and returns the encrypted result
Click to show internal directories.
Click to hide internal directories.