Documentation ¶
Index ¶
- func CreateTokenTime(addMinute time.Duration) int64
- func GenerateDetachedJws(jsonBody string, signingMethod jwt.SigningMethod) (string, error)
- func GenerateJwtWithClaims(claims jwt.MapClaims, signingMethod jwt.SigningMethod) (string, error)
- func GenerateJwtWithJsonString(jsonBody string, signingMethod jwt.SigningMethod) (string, error)
- func GetPrivateKey(cacheId, keyAddress string) (*rsa.PrivateKey, error)
- func GetSecretKey(cacheId, keyAddress string) ([]byte, error)
- func VerifyJwt(tokenString string, signingMethod jwt.SigningMethod, key interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTokenTime ¶
func GenerateDetachedJws ¶
func GenerateJwtWithClaims ¶
func GetPrivateKey ¶
func GetPrivateKey(cacheId, keyAddress string) (*rsa.PrivateKey, error)
func GetSecretKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.