Documentation ¶
Index ¶
- func IsEd25519(flagAlg string) bool
- func IsEs(flagAlg string) bool
- func IsHs(flagAlg string) bool
- func IsRs(flagAlg string) bool
- func LoadData(fn string) ([]byte, error)
- func PrintErrorJson(js string, err error) (rv string)
- func PrintJSON(data interface{}, indent bool, fp *os.File)
- func SignToken(rawToken []byte, Alg string, Head map[string]string, claims jwt.MapClaims, ...) (signedToken string, err error)
- func TrimWhitespaceBytes(tokData []byte) (rv []byte)
- func VerifyToken(rawToken []byte, alg string, keyData []byte) (token *jwt.Token, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintErrorJson ¶
func SignToken ¶
func SignToken(rawToken []byte, Alg string, Head map[string]string, claims jwt.MapClaims, keyData []byte) (signedToken string, err error)
func SignToken(rawToken []byte, Alg string, Head ArgList, claims jwt.MapClaims, keyData []byte) (err error) {
keyData is the private key if EC/RS etc. It is the secret hash if HS256, HS384.
func TrimWhitespaceBytes ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.