package bootstrap
import "k8s.io/cluster-bootstrap/token/jws"
Index ¶
- func ComputeDetachedSignature(content, tokenID, tokenSecret string) (string, error)
- func DetachedTokenIsValid(detachedToken, content, tokenID, tokenSecret string) bool
Functions ¶
func ComputeDetachedSignature ¶
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 ¶
DetachedTokenIsValid checks whether a given detached JWS-encoded token matches JWS output of the given content and token
Source Files ¶
jws.go
- Version
- v0.18.12-rc.1
- Published
- Nov 12, 2020
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 1 minute ago –
Tools for package owners.