Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JWTGenerator ¶
type JWTGenerator struct {
// contains filtered or unexported fields
}
func NewJWTGenerator ¶
func NewJWTGenerator(privateRSAKey *rsa.PrivateKey) JWTGenerator
func (JWTGenerator) GenerateToken ¶
func (g JWTGenerator) GenerateToken(claimsToWrap claims2.Claims) (string, error)
type JWTValidator ¶
type JWTValidator struct {
// contains filtered or unexported fields
}
func NewJWTValidator ¶
func NewJWTValidator(rsaPublicKey *rsa.PublicKey) JWTValidator
func (*JWTValidator) ValidateJWT ¶
func (jwtv *JWTValidator) ValidateJWT(jwt string) (wrappedClaims.Wrapped, error)
Click to show internal directories.
Click to hide internal directories.