Documentation ¶
Overview ¶
Package rsa provides RSA signing methods for JWT.
Index ¶
- Variables
- func SignRS256(token string, secret interface{}) (string, error)
- func SignRS384(token string, secret interface{}) (string, error)
- func SignRS512(token string, secret interface{}) (string, error)
- func VerifyRS256(token, signature string, secret interface{}) error
- func VerifyRS384(token, signature string, secret interface{}) error
- func VerifyRS512(token, signature string, secret interface{}) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidKey is returned when the given key is not a valid RSA key. ErrInvalidKey = errors.New("jwt/rsa: invalid key") // ErrUnsupportedKeyType is returned when the secret is not a supported type. ErrUnsupportedKeyType = errors.New("jwt/rsa: unsupported key type") )
Functions ¶
func VerifyRS256 ¶
VerifyRS256 verifies the given signature using the given secret.
func VerifyRS384 ¶
VerifyRS384 verifies the given signature using the given secret.
func VerifyRS512 ¶
VerifyRS512 verifies the given signature using the given secret.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.