Documentation
¶
Overview ¶
Package signingtest implements signing.Signer interface using fake keys. Useful in unit tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Signer ¶
type Signer struct {
// contains filtered or unexported fields
}
Signer holds private key and corresponding cert and can sign blobs with PKCS1v15.
func NewSigner ¶
func NewSigner(seed int64, serviceInfo *signing.ServiceInfo) *Signer
NewSigner returns Signer instance deterministically deriving the key from the given seed. Panics on errors.
func (*Signer) Certificates ¶
Certificates returns a bundle with public certificates for all active keys.
func (*Signer) ServiceInfo ¶
ServiceInfo returns information about the current service.
It includes app ID and the service account name (that ultimately owns the signing private key).
Source Files
¶
- doc.go
- signer.go
Click to show internal directories.
Click to hide internal directories.