auth

package
v0.0.0-...-fec9766 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_auth_auth_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AuthBody

type AuthBody struct {
	Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*AuthBody) Descriptor deprecated

func (*AuthBody) Descriptor() ([]byte, []int)

Deprecated: Use AuthBody.ProtoReflect.Descriptor instead.

func (*AuthBody) GetPayload

func (x *AuthBody) GetPayload() []byte

func (*AuthBody) ProtoMessage

func (*AuthBody) ProtoMessage()

func (*AuthBody) ProtoReflect

func (x *AuthBody) ProtoReflect() protoreflect.Message

func (*AuthBody) Reset

func (x *AuthBody) Reset()

func (*AuthBody) String

func (x *AuthBody) String() string

type AuthContainer

type AuthContainer struct {
	ProtectedPayload *AuthBody `protobuf:"bytes,1,opt,name=protectedPayload,proto3" json:"protectedPayload,omitempty"` // envelope body, a marshalled protobuf data or it can be null
	// if the length of senderCertHash received is not N bytes, as described in hashAlgorithm, then the protobuf
	// message either is not AuthContainer type, or is corrupted. Otherwise, the
	// receiver may not have the sender's signing certificate
	Algo           evecommon.HashAlgorithm `protobuf:"varint,2,opt,name=algo,proto3,enum=org.lfedge.eve.common.HashAlgorithm" json:"algo,omitempty"` // hash algorithm used by sender Cert
	SenderCertHash []byte                  `protobuf:"bytes,3,opt,name=senderCertHash,proto3" json:"senderCertHash,omitempty"`                       // N bytes in length, 1st N bytes of sender siging cert sha256 hash
	SignatureHash  []byte                  `protobuf:"bytes,4,opt,name=signatureHash,proto3" json:"signatureHash,omitempty"`                         // signature of the sha256 hash of the payload
	SenderCert     []byte                  `protobuf:"bytes,5,opt,name=senderCert,proto3" json:"senderCert,omitempty"`                               // full senderCert needed for some payloads
	// contains filtered or unexported fields
}

func (*AuthContainer) Descriptor deprecated

func (*AuthContainer) Descriptor() ([]byte, []int)

Deprecated: Use AuthContainer.ProtoReflect.Descriptor instead.

func (*AuthContainer) GetAlgo

func (x *AuthContainer) GetAlgo() evecommon.HashAlgorithm

func (*AuthContainer) GetProtectedPayload

func (x *AuthContainer) GetProtectedPayload() *AuthBody

func (*AuthContainer) GetSenderCert

func (x *AuthContainer) GetSenderCert() []byte

func (*AuthContainer) GetSenderCertHash

func (x *AuthContainer) GetSenderCertHash() []byte

func (*AuthContainer) GetSignatureHash

func (x *AuthContainer) GetSignatureHash() []byte

func (*AuthContainer) ProtoMessage

func (*AuthContainer) ProtoMessage()

func (*AuthContainer) ProtoReflect

func (x *AuthContainer) ProtoReflect() protoreflect.Message

func (*AuthContainer) Reset

func (x *AuthContainer) Reset()

func (*AuthContainer) String

func (x *AuthContainer) String() string

Jump to

Keyboard shortcuts

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