You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
292 B
11 lines
292 B
7 years ago
|
package authentication
|
||
|
|
||
|
const authorizationHeaderFormat = `Signature keyId="%s",algorithm="%s",headers="%s",signature="%s"`
|
||
|
|
||
|
type Signer interface {
|
||
|
DefaultAlgorithm() string
|
||
|
KeyFingerprint() string
|
||
|
Sign(dateHeader string) (string, error)
|
||
|
SignRaw(toSign string) (string, string, error)
|
||
|
}
|