Documentation
¶
Index ¶
- func CreateTokenWithPayload(payload map[string]interface{}, privateKey *rsa.PrivateKey) (string, error)
- func ParsePrivateKey(filePath string) *rsa.PrivateKey
- func ParsePrivateKeyContents(keyFileContents string) *rsa.PrivateKey
- func ParsePublicKey(filePath string) *rsa.PublicKey
- func ParsePublicKeyContents(keyFileContents string) *rsa.PublicKey
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTokenWithPayload ¶
func CreateTokenWithPayload(payload map[string]interface{}, privateKey *rsa.PrivateKey) (string, error)
CreateTokenWithPayload returns signed jwt token
func ParsePrivateKey ¶
func ParsePrivateKey(filePath string) *rsa.PrivateKey
ParsePrivateKey Parses privateKey file
func ParsePrivateKeyContents ¶
func ParsePrivateKeyContents(keyFileContents string) *rsa.PrivateKey
ParsePrivateKeyContents Parses rsa Key contents
func ParsePublicKey ¶
ParsePublicKey Parses publicKey file
func ParsePublicKeyContents ¶
ParsePublicKeyContents Parses rsa Key contents
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.