jwk

package
v0.0.0-...-f784db4 Latest Latest
Warning

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

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

Documentation

Overview

* Copyright © 2018 Prateek Malhotra <someone1@gmail.com> * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Based on https://github.com/ory/hydra/blob/master/jwk/manager_sql.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatastoreManager

type DatastoreManager struct {
	Cipher *jwk.AEAD
	// contains filtered or unexported fields
}

func NewDatastoreManager

func NewDatastoreManager(client *datastore.Client, namespace string, cipher *jwk.AEAD) *DatastoreManager

func (*DatastoreManager) AddKey

func (d *DatastoreManager) AddKey(ctx context.Context, set string, key *jose.JSONWebKey) error

func (*DatastoreManager) AddKeySet

func (d *DatastoreManager) AddKeySet(ctx context.Context, set string, keys *jose.JSONWebKeySet) error

func (*DatastoreManager) DeleteKey

func (d *DatastoreManager) DeleteKey(ctx context.Context, set, kid string) error

func (*DatastoreManager) DeleteKeySet

func (d *DatastoreManager) DeleteKeySet(ctx context.Context, set string) error

func (*DatastoreManager) GetKey

func (d *DatastoreManager) GetKey(ctx context.Context, set, kid string) (*jose.JSONWebKeySet, error)

func (*DatastoreManager) GetKeySet

func (d *DatastoreManager) GetKeySet(ctx context.Context, set string) (*jose.JSONWebKeySet, error)

Jump to

Keyboard shortcuts

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