identity

package module
v0.0.0-...-b222e92 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: MIT Imports: 8 Imported by: 0

README

identity

Library includes cryptography, OAuth, X509 helper functions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPrivateKey

func GetPrivateKey(path string, password string) (*rsa.PrivateKey, error)

GetPrivateKey extract encrypted RSA private key from PEM file

func GetPublicKey

func GetPublicKey(path string) (*rsa.PublicKey, error)

GetPublicKey extracts RSA public key from PEM file of public key

func GetPublicKeyFromCertificate

func GetPublicKeyFromCertificate(path string) (*rsa.PublicKey, error)

GetPublicKeyFromCertificate extracts RSA public key from PEM file of certificate

func GetTokenString

func GetTokenString(r *http.Request) string

GetTokenString retrieves bearer token string from the specified request

Types

This section is empty.

Jump to

Keyboard shortcuts

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