Deprecated: This version of github.com/lestrrat-go/jwx is deprecated. Please use github.com/lestrrat-go/jwx/v3 or newer instead.

package types

import "github.com/lestrrat-go/jwx/jwt/internal/types"

Index

Types

type NumericDate

type NumericDate struct {
	time.Time
}

NumericDate represents the date format used in the 'nbf' claim

func (*NumericDate) Accept

func (n *NumericDate) Accept(v interface{}) error

func (*NumericDate) Get

func (n *NumericDate) Get() time.Time

func (*NumericDate) MarshalJSON

func (n *NumericDate) MarshalJSON() ([]byte, error)

MarshalJSON translates from internal representation to JSON NumericDate See https://tools.ietf.org/html/rfc7519#page-6

func (*NumericDate) UnmarshalJSON

func (n *NumericDate) UnmarshalJSON(data []byte) error

type StringList

type StringList []string

func (*StringList) Accept

func (l *StringList) Accept(v interface{}) error

func (StringList) Get

func (l StringList) Get() []string

func (*StringList) UnmarshalJSON

func (l *StringList) UnmarshalJSON(data []byte) error

Source Files

date.go string.go

Version
v1.2.31 (latest)
Published
Apr 9, 2025
Platform
linux/amd64
Imports
4 packages
Last checked
3 weeks ago

Tools for package owners.