signer

package
v0.0.0-...-8d5b3bf Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWSSigner

type JWSSigner struct {
	// contains filtered or unexported fields
}

func NewJWSSigner

func NewJWSSigner(keyID string, signingAlgorithm string, signer vc.SignerAlgorithm) *JWSSigner

func (*JWSSigner) Headers

func (s *JWSSigner) Headers() jose.Headers

Headers provides JWS headers. "alg" header must be provided (see https://tools.ietf.org/html/rfc7515#section-4.1).

func (*JWSSigner) Sign

func (s *JWSSigner) Sign(data []byte) ([]byte, error)

Sign signs data.

Jump to

Keyboard shortcuts

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