luci: go.chromium.org/luci/appengine/gaeauth/server/gaesigner Index | Files

package gaesigner

import "go.chromium.org/luci/appengine/gaeauth/server/gaesigner"

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

Index

Package Files

signer.go

type Signer Uses

type Signer struct{}

Signer implements signing.Signer using GAE App Identity API.

func (Signer) Certificates Uses

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

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

func (Signer) ServiceInfo Uses

func (Signer) ServiceInfo(ctx 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 Uses

func (Signer) SignBytes(ctx 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.

Package gaesigner imports 8 packages (graph) and is imported by 12 packages. Updated 2019-12-05. Refresh now. Tools for package owners.