2017-04-26 15:12:57 -04:00
|
|
|
package authentication
|
|
|
|
|
|
|
|
const authorizationHeaderFormat = `Signature keyId="%s",algorithm="%s",headers="%s",signature="%s"`
|
|
|
|
|
|
|
|
type Signer interface {
|
2017-10-31 11:02:15 -04:00
|
|
|
DefaultAlgorithm() string
|
|
|
|
KeyFingerprint() string
|
2017-04-26 15:12:57 -04:00
|
|
|
Sign(dateHeader string) (string, error)
|
2017-10-31 11:02:15 -04:00
|
|
|
SignRaw(toSign string) (string, string, error)
|
2017-04-26 15:12:57 -04:00
|
|
|
}
|