Documentation ¶
Index ¶
- Variables
- type EncryptedObject
- func (*EncryptedObject) Descriptor() ([]byte, []int)deprecated
- func (x *EncryptedObject) GetA() encryption.Algo
- func (x *EncryptedObject) GetKeyToken() []byte
- func (x *EncryptedObject) GetV() []byte
- func (*EncryptedObject) ProtoMessage()
- func (x *EncryptedObject) ProtoReflect() protoreflect.Message
- func (x *EncryptedObject) Reset()
- func (x *EncryptedObject) String() string
- type EncryptedObjectParser
Constants ¶
This section is empty.
Variables ¶
View Source
var File_encrypted_object_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type EncryptedObject ¶
type EncryptedObject struct { KeyToken []byte `protobuf:"bytes,1,opt,name=keyToken,proto3" json:"keyToken,omitempty"` A encryption.Algo `protobuf:"varint,2,opt,name=a,proto3,enum=Algo" json:"a,omitempty"` V []byte `protobuf:"bytes,3,opt,name=v,proto3" json:"v,omitempty"` // contains filtered or unexported fields }
func NewEncryptedObject ¶
func NewEncryptedObject(keyToken []byte, message protoreflect.ProtoMessage, encryptor encryption.TokenKeyEncryptor) (*EncryptedObject, error)
NewEncryptedObject creates an instance of EncryptedObject from the supplied message and encryptor details
func (*EncryptedObject) Descriptor
deprecated
func (*EncryptedObject) Descriptor() ([]byte, []int)
Deprecated: Use EncryptedObject.ProtoReflect.Descriptor instead.
func (*EncryptedObject) GetA ¶
func (x *EncryptedObject) GetA() encryption.Algo
func (*EncryptedObject) GetKeyToken ¶
func (x *EncryptedObject) GetKeyToken() []byte
func (*EncryptedObject) GetV ¶
func (x *EncryptedObject) GetV() []byte
func (*EncryptedObject) ProtoMessage ¶
func (*EncryptedObject) ProtoMessage()
func (*EncryptedObject) ProtoReflect ¶
func (x *EncryptedObject) ProtoReflect() protoreflect.Message
func (*EncryptedObject) Reset ¶
func (x *EncryptedObject) Reset()
func (*EncryptedObject) String ¶
func (x *EncryptedObject) String() string
type EncryptedObjectParser ¶
type EncryptedObjectParser struct {
// contains filtered or unexported fields
}
func NewEncryptedObjectParser ¶
func NewEncryptedObjectParser(decryptor encryption.TokenKeyDecryptor) (*EncryptedObjectParser, error)
EncryptedObjectParser decrypts EncryptedObjects in a Message, using the supplied TokenKeyDecryptor
func (*EncryptedObjectParser) Parse ¶
func (cp *EncryptedObjectParser) Parse(e *EncryptedObject, message protoreflect.ProtoMessage) error
Parse decrypts using into the supplied ProtoMessage instance
Click to show internal directories.
Click to hide internal directories.