tokens

package
v0.0.0-...-fdc2568 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Token

type Token struct {
	TokenType     uint16
	Nonce         []byte
	Context       []byte
	KeyID         []byte
	Authenticator []byte
}

func (Token) AuthenticatorInput

func (t Token) AuthenticatorInput() []byte

func (Token) Marshal

func (t Token) Marshal() []byte

type TokenChallenge

type TokenChallenge struct {
	TokenType       uint16
	IssuerName      string
	RedemptionNonce []byte
	OriginInfo      []string
}
struct {
    uint16_t token_type;
    opaque issuer_name<1..2^16-1>;
    opaque redemption_nonce<0..32>;
    opaque origin_name<0..2^16-1>;
} TokenChallenge;

func UnmarshalTokenChallenge

func UnmarshalTokenChallenge(data []byte) (TokenChallenge, error)

func (TokenChallenge) Equals

func (c TokenChallenge) Equals(o TokenChallenge) bool

func (TokenChallenge) Marshal

func (c TokenChallenge) Marshal() []byte

type TokenRequest

type TokenRequest interface {
	Marshal() []byte
	Unmarshal(data []byte) bool
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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