issuer

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2019 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Issuer

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

Issuer holds the issuer's internal state.

func New

func New(uri string, k *keychain.Keychain) *Issuer

New returns a new issuer.

func (*Issuer) Keychain

func (i *Issuer) Keychain() *keychain.Keychain

Keychain returns the keychain used by the issuer.

func (*Issuer) SetDuration

func (i *Issuer) SetDuration(duration time.Duration)

SetDuration sets the valid duration of token.

func (*Issuer) Sign

func (i *Issuer) Sign(subject string) string

Sign a JSON web token for user.

Jump to

Keyboard shortcuts

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