signing

package
v0.0.0-...-c990d3b Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultMatchPattern

func DefaultMatchPattern() *regexp.Regexp

func NewGeneratedString

func NewGeneratedString() cgi.SignedStringInterface

func NewPartiallyGeneratedString

func NewPartiallyGeneratedString(begin, end string) cgi.SignedStringInterface

Types

type MatchResult

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

type SignedString

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

func New

func New(tokenName, docMessage string) *SignedString

func (*SignedString) DocBlock

func (s *SignedString) DocBlock(comment string) string

func (*SignedString) HasValidSignature

func (s *SignedString) HasValidSignature(value string) (bool, error)

func (*SignedString) IsSigned

func (s *SignedString) IsSigned(value string) (bool, error)

func (*SignedString) Pattern

func (s *SignedString) Pattern() *regexp.Regexp

func (*SignedString) SignString

func (s *SignedString) SignString(value string) (string, error)

func (*SignedString) SigningToken

func (s *SignedString) SigningToken() string

func (*SignedString) SigningType

func (s *SignedString) SigningType() cge.SigningType

func (*SignedString) TokenName

func (s *SignedString) TokenName() string

func (*SignedString) Verify

func (s *SignedString) Verify(maybe_signed string) (bool, error)

Jump to

Keyboard shortcuts

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