简体   繁体   English

在 Groovy 中为 soapUI 生成 AWS 签名

[英]Generating AWS signature in Groovy for soapUI

I am new to groovy scripting and I have to test AWS Rest API for which Authorization (consist of access_key and signature) is required.我是 groovy 脚本的新手,我必须测试需要授权(由 access_key 和签名组成)的 AWS Rest API。 Request if anyone have working code available.询问是否有人有可用的工作代码。 It is PUT call on AWS S3.它是 AWS S3 上的 PUT 调用。

I have tried searching and unable to find the same.我试过搜索但无法找到相同的。

If you can afford it, the latest versions of soapUI Pro have AWS signing built it.如果您负担得起,最新版本的soapUI Pro 已由AWS 签名构建。

Otherwise, you'll have to write your own following the steps at Examples: Signature Calculations in AWS Signature Version 4 .否则,您必须按照示例:AWS 签名版本 4 中的签名计算中的步骤自行编写。 There's an example at Signature4 signing for elastic search in aws in Java, but it's easy enough to call from Groovy. Signature4 中有一个在 Java 中为 aws中的弹性搜索签名的示例,但从 Groovy 调用它很容易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM