1//
2// Copyright (c) 2018, Joyent, Inc. All rights reserved.
3//
4// This Source Code Form is subject to the terms of the Mozilla Public
5// License, v. 2.0. If a copy of the MPL was not distributed with this
6// file, You can obtain one at http://mozilla.org/MPL/2.0/.
7//
8
9package authentication
10
11const authorizationHeaderFormat = `Signature keyId="%s",algorithm="%s",headers="%s",signature="%s"`
12
13type Signer interface {
14	DefaultAlgorithm() string
15	KeyFingerprint() string
16	Sign(dateHeader string, isManta bool) (string, error)
17	SignRaw(toSign string) (string, string, error)
18}
19