MCPcopy Index your code
hub / github.com/cloudfoundry/cli / buildTokenString

Function buildTokenString

api/cloudcontroller/wrapper/uaa_authentication_test.go:227–233  ·  view source on GitHub ↗
(expiration time.Time)

Source from the content-addressed store, hash-verified

225})
226
227func buildTokenString(expiration time.Time) (string, error) {
228 c := jws.Claims{}
229 c.SetExpiration(expiration)
230 token := jws.NewJWT(c, crypto.Unsecured)
231 tokenBytes, err := token.Serialize(nil)
232 return string(tokenBytes), err
233}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected