Documentation ¶
Index ¶
- func ParseAuthHeaders(req *http.Request) map[string]string
- type V1Signer
- func (v *V1Signer) Check(req *http.Request, secret string) *signers.AuthenticationError
- func (v *V1Signer) CreateSignable(req *http.Request, authHeaders map[string]string) []byte
- func (v *V1Signer) GenerateAuthorization(req *http.Request, authHeaders map[string]string, signature string) (string, *signers.AuthenticationError)
- func (v *V1Signer) GetIdentificationRegex() *regexp.Regexp
- func (v *V1Signer) GetResponseSigner() signers.ResponseSigner
- func (v *V1Signer) HashBody(req *http.Request) (string, *signers.AuthenticationError)
- func (v *V1Signer) ParseAuthHeaders(req *http.Request) map[string]string
- func (v *V1Signer) Sign(req *http.Request, authHeaders map[string]string, secret string) (string, *signers.AuthenticationError)
- func (v *V1Signer) SignDirect(req *http.Request, authHeaders map[string]string, secret string) *signers.AuthenticationError
- func (v *V1Signer) Version() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type V1Signer ¶
type V1Signer struct { *signers.Digester *signers.Identifiable }
func NewV1Signer ¶
func NewV1Signer(digest func() hash.Hash) (*V1Signer, *signers.AuthenticationError)
func (*V1Signer) CreateSignable ¶
func (*V1Signer) GenerateAuthorization ¶
func (*V1Signer) GetIdentificationRegex ¶
func (*V1Signer) GetResponseSigner ¶
func (v *V1Signer) GetResponseSigner() signers.ResponseSigner
func (*V1Signer) ParseAuthHeaders ¶
func (*V1Signer) SignDirect ¶
Click to show internal directories.
Click to hide internal directories.