jwk

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWK

type JWK struct {
	Key          interface{}
	Certificates []*x509.Certificate
	KeyID        string
	Algorithm    string
	Use          string
}

JWK represents a RFC 7517 JSON Web Key JWK

func (*JWK) MarshalJSON

func (k *JWK) MarshalJSON() ([]byte, error)

MarshalJSON serializes the JWK to actual JSON

func (*JWK) UnmarshalJSON

func (k *JWK) UnmarshalJSON(data []byte) error

UnmarshalJSON parses a JWK from JSON Data

func (*JWK) Validate

func (k *JWK) Validate() error

Validate checks if the JWK is valid. i.e. all the values for the key are valid and present

type KeySet

type KeySet struct {
	Keys []JWK `json:"keys"`
}

KeySet repesents a JWK Key Set: RFC 7517 JWK Section-5

Jump to

Keyboard shortcuts

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