Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/354.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在url中隐藏参数_Java_Rest - Fatal编程技术网

Java 在url中隐藏参数

Java 在url中隐藏参数,java,rest,Java,Rest,使用电子邮件搜索时,电子邮件将显示在url中。 隐藏电子邮件部分的更好方法是什么?使用邮政? 多谢各位 URI: https://myproject/api/tenants/A1/users?email=my@example.com&page=1&pageSize=10 服务: @GET @Path("/tenants/{tenantsId}/users") @Produces("application/json;charset-UTF-8") publi

使用电子邮件搜索时,电子邮件将显示在url中。 隐藏电子邮件部分的更好方法是什么?使用邮政? 多谢各位

URI: https://myproject/api/tenants/A1/users?email=my@example.com&page=1&pageSize=10

服务:

@GET
@Path("/tenants/{tenantsId}/users")
@Produces("application/json;charset-UTF-8")
public Response index(
@PathParam("tenantId") String tenantId, 
@DefaultValue("1") @QueryParam("page") int page,
@DefaultValue("10") @QueryParam("pageSize") int pageSize,
@QueryParam("email") string email) 
throw .....Exception;

您可以使用公钥/私钥对其进行“加密”,这样在服务器端您就可以对其进行解密,而成为URL的一部分并不意味着在URL中留下一些密文。或者使用POST。或者使用JWT