cluster-bootstrapk8s.io/cluster-bootstrap/token/jws Index | Files

package bootstrap

import "k8s.io/cluster-bootstrap/token/jws"

Index

Functions

func ComputeDetachedSignature

func ComputeDetachedSignature(content, tokenID, tokenSecret string) (string, error)

ComputeDetachedSignature takes content and token details and computes a detached JWS signature. This is described in Appendix F of RFC 7515. Basically, this is a regular JWS with the content part of the signature elided.

func DetachedTokenIsValid

func DetachedTokenIsValid(detachedToken, content, tokenID, tokenSecret string) bool

DetachedTokenIsValid checks whether a given detached JWS-encoded token matches JWS output of the given content and token

Source Files

jws.go

Version
v0.32.2 (latest)
Published
Feb 13, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
2 months ago

Tools for package owners.