provision

package
v0.0.0-...-1a11905 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	// contains filtered or unexported fields
}

Token defines a one time use token that is intended to be exchanged for a newly provisioned certificate by an end entity. Token differs from BootstrapToken because it does not self contain networking information for connecting to the certificate authority or gatewayconsole.

Token implements the Token interface.

func New

func New(subject string, opts ...token.Options) (*Token, error)

New returns a new unsigned One-Time-Token for authorizing a single request from a newly provisioned end-entity. The current implementation uses jwt.Token and is generated using sane defaults for the claims. See token/options.go for default claim definitions.

func (*Token) SignedString

func (t *Token) SignedString(sigAlg string, key interface{}) (string, error)

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

Jump to

Keyboard shortcuts

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