util

package
v0.4.33 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2018 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

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

func ParsePublicKey(filePath string) *rsa.PublicKey

ParsePublicKey Parses publicKey file

func ParsePublicKeyContents

func ParsePublicKeyContents(keyFileContents string) *rsa.PublicKey

ParsePublicKeyContents Parses rsa Key contents

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL