Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RPCSignatureVerifier ¶
type RPCSignatureVerifier struct {
// contains filtered or unexported fields
}
RPCSignatureVerifier verifies signed requests messages by owner accounts.
func NewRPCSignatureVerifier ¶
func NewRPCSignatureVerifier(data code_data.Provider) *RPCSignatureVerifier
func (*RPCSignatureVerifier) Authenticate ¶
func (v *RPCSignatureVerifier) Authenticate(ctx context.Context, owner *common.Account, message proto.Message, signature *commonpb.Signature) error
Authenticate authenticates that a RPC request message is signed by the owner account public key.
func (*RPCSignatureVerifier) AuthorizeDataAccess ¶
func (v *RPCSignatureVerifier) AuthorizeDataAccess(ctx context.Context, dataContainerID *user.DataContainerID, owner *common.Account, message proto.Message, signature *commonpb.Signature) error
AuthorizeDataAccess authenticates and authorizes that an owner account can access data in a container.
Click to show internal directories.
Click to hide internal directories.