MCPcopy
hub / github.com/smallstep/cli / SignedString

Method SignedString

token/provision/provision.go:34–36  ·  view source on GitHub ↗

SignedString implementation of the Token interface. It returns a JWT using the compact serialization.

(sigAlg string, key interface{})

Source from the content-addressed store, hash-verified

32// SignedString implementation of the Token interface. It returns a JWT using
33// the compact serialization.
34func (t *Token) SignedString(sigAlg string, key interface{}) (string, error) {
35 return t.claims.Sign(jose.SignatureAlgorithm(sigAlg), key)
36}

Callers 1

TestToken_SignedStringFunction · 0.95

Implementers 1

Tokentoken/provision/provision.go

Calls 1

SignMethod · 0.65

Tested by 1

TestToken_SignedStringFunction · 0.76