func()

in sigv4/sigv4.go [58:69]


func (p AwsAuthenticator) Challenge(req []byte) ([]byte, gocql.Authenticator, error) {
	var resp []byte = []byte("SigV4\000\000")

	// copy these rather than use a reference due to how gocql creates connections (its just
	// safer if everything if a fresh copy).
	auth := signingAuthenticator{region: p.Region,
		accessKeyId:     p.AccessKeyId,
		secretAccessKey: p.SecretAccessKey,
		sessionToken:    p.SessionToken,
		currentTime:     p.currentTime}
	return resp, auth, nil
}