validator

package
v0.0.0-...-ee7ae68 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2017 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CryptoProcessor

type CryptoProcessor interface {
	CanVerify(msg *messages.MessageWrapper) bool
	Sign(msg *messages.MessageWrapper) ([]byte, error)
	Verify(request, response *messages.MessageWrapper) bool

	ProcessorDetails() validation.ValidationAlgorithm
	Hasher() hash.Hash
}

type HMACProcessor

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

func NewHMACProcessorWithKey

func NewHMACProcessorWithKey(key []byte) (*HMACProcessor, error)

func (HMACProcessor) CanVerify

func (p HMACProcessor) CanVerify(msg *messages.MessageWrapper) bool

func (HMACProcessor) Hasher

func (p HMACProcessor) Hasher() hash.Hash

func (HMACProcessor) ProcessorDetails

func (p HMACProcessor) ProcessorDetails() validation.ValidationAlgorithm

func (HMACProcessor) Sign

func (p HMACProcessor) Sign(msg *messages.MessageWrapper) ([]byte, error)

func (HMACProcessor) Verify

func (p HMACProcessor) Verify(request, response *messages.MessageWrapper) bool

type RSAProcessor

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

func NewRSAProcessor

func NewRSAProcessor(keySize int) (RSAProcessor, error)

func NewRSAProcessorWithKey

func NewRSAProcessorWithKey(key *rsa.PrivateKey) (RSAProcessor, error)

func (RSAProcessor) CanVerify

func (p RSAProcessor) CanVerify(msg *messages.MessageWrapper) bool

func (RSAProcessor) Hasher

func (p RSAProcessor) Hasher() hash.Hash

func (RSAProcessor) ProcessorDetails

func (p RSAProcessor) ProcessorDetails() validation.ValidationAlgorithm

func (RSAProcessor) Sign

func (p RSAProcessor) Sign(msg *messages.MessageWrapper) ([]byte, error)

func (RSAProcessor) Verify

func (p RSAProcessor) Verify(request, response *messages.MessageWrapper) bool

Jump to

Keyboard shortcuts

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