gaesigner

package
v0.0.0-...-a0a3655 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package gaesigner implements signing.Signer interface using GAE App Identity API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer struct{}

Signer implements signing.Signer using GAE App Identity API.

func (Signer) Certificates

func (Signer) Certificates(c context.Context) (*signing.PublicCertificates, error)

Certificates returns a bundle with public certificates for all active keys.

func (Signer) ServiceInfo

func (Signer) ServiceInfo(c context.Context) (*signing.ServiceInfo, error)

ServiceInfo returns information about the current service.

It includes app ID and the service account name (that ultimately owns the signing private key).

func (Signer) SignBytes

func (Signer) SignBytes(c context.Context, blob []byte) (keyName string, signature []byte, err error)

SignBytes signs the blob with some active private key.

Returns the signature and name of the key used.

Jump to

Keyboard shortcuts

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