Documentation
¶
Index ¶
- Constants
- func CanonicalIrisRequest(method, target, timestamp, nonce, bodySHA256 string) string
- func CanonicalIrisTarget(target string) (string, error)
- func GenerateNonce() string
- func SHA256HexBytes(body []byte) string
- func SetIrisHMACHeaders(req *http.Request, signer *HMACSigner, method, path, bodySHA256 string) error
- func SignIrisCanonicalWithSigner(signer *HMACSigner, method, path, timestamp, nonce, bodySHA256 string) (string, error)
- type HMACSigner
Constants ¶
View Source
const EmptyBodySHA256Hex = irishmac.EmptyBodySHA256Hex
Variables ¶
This section is empty.
Functions ¶
func CanonicalIrisRequest ¶
func CanonicalIrisTarget ¶
func GenerateNonce ¶
func GenerateNonce() string
func SHA256HexBytes ¶
func SetIrisHMACHeaders ¶
func SetIrisHMACHeaders(req *http.Request, signer *HMACSigner, method, path, bodySHA256 string) error
func SignIrisCanonicalWithSigner ¶
func SignIrisCanonicalWithSigner(signer *HMACSigner, method, path, timestamp, nonce, bodySHA256 string) (string, error)
Types ¶
type HMACSigner ¶
type HMACSigner struct {
// contains filtered or unexported fields
}
func NewHMACSigner ¶
func NewHMACSigner(secret string) *HMACSigner
func (*HMACSigner) Sign ¶
func (s *HMACSigner) Sign(canonical string) string
Click to show internal directories.
Click to hide internal directories.