keys

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2020 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Overview

package keys offers utility functions for working with crypto.Signers, JWS, JWKs and PEM serialization.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JWKForSigner

func JWKForSigner(signer crypto.Signer) jose.JSONWebKey

func JWKJSON

func JWKJSON(signer crypto.Signer) string

func JWKThumbprint

func JWKThumbprint(signer crypto.Signer) string

func JWKThumbprintBytes

func JWKThumbprintBytes(signer crypto.Signer) []byte

func KeyAuth

func KeyAuth(signer crypto.Signer, token string) string

func MarshalSigner

func MarshalSigner(signer crypto.Signer) ([]byte, string, error)

func NewSigner

func NewSigner(keyType string) (crypto.Signer, error)

func SignerToPEM

func SignerToPEM(signer crypto.Signer) (string, error)

func SigningKeyForSigner

func SigningKeyForSigner(signer crypto.Signer, keyID string) jose.SigningKey

func UnmarshalSigner

func UnmarshalSigner(keyBytes []byte, keyType string) (crypto.Signer, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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