jwk

package
v0.0.0-...-69e45e2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2015 License: Apache-2.0 Imports: 7 Imported by: 19

Documentation

Overview

JWK 関係。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key interface {
	// kty
	Type() string
	// use
	Use() string
	// key_ops
	Operations() map[string]bool
	// alg
	Algorithm() string
	// kid
	Id() string

	Public() crypto.PublicKey
	Private() crypto.PrivateKey
	Common() []byte

	// json.Marshal すると JWK になるようなマップを返す。
	ToMap() map[string]interface{}
}

func FromMap

func FromMap(m map[string]interface{}) (k Key, err error)

JWK を json.Unmarshal した結果からつくる。

func New

func New(rawKey interface{}, m map[string]interface{}) Key

Jump to

Keyboard shortcuts

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