object: implement SignedData() and AddSignKey() methods on IntegrityHeader

This commit is contained in:
Leonard Lyubich 2020-05-18 13:44:32 +03:00
parent ab796b81d2
commit 96a6bb4842
4 changed files with 64 additions and 0 deletions

View file

@ -391,3 +391,18 @@ func Stringify(dst io.Writer, obj *Object) error {
func (m *HeadRequest) SetFullHeaders(v bool) {
m.FullHeaders = v
}
// GetSignature is a ChecksumSignature field getter.
func (m IntegrityHeader) GetSignature() []byte {
return m.ChecksumSignature
}
// SetSignature is a ChecksumSignature field setter.
func (m *IntegrityHeader) SetSignature(v []byte) {
m.ChecksumSignature = v
}
// SetHeadersChecksum is a HeadersChecksum field setter.
func (m *IntegrityHeader) SetHeadersChecksum(v []byte) {
m.HeadersChecksum = v
}