kmssigner

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

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyTypeToJWA

func KeyTypeToJWA(keyType kms.KeyType) string

KeyTypeToJWA provides the JWA corresponding to keyType.

Types

type KMSSigner

type KMSSigner struct {
	KeyType   kms.KeyType
	KeyHandle interface{}
	Crypto    crypto.Crypto
	MultiMsg  bool
}

KMSSigner implements JWS Signer interface using a KMS key handle and a crypto.Crypto instance.

func (*KMSSigner) Alg

func (s *KMSSigner) Alg() string

Alg provides the JWA corresponding to the KMSSigner's KeyType.

func (*KMSSigner) Sign

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

Sign signs data using KMSSigner's KeyHandle.

Jump to

Keyboard shortcuts

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