作业5
1.APP功能
快递员:记录快递状态(已取件或已送达)、验证客户身份、获取信息
客户:查看物流状态、获取快递员信息、查看取件码
快递公司:验证快递员与客户信息是否匹配、物流情况、单号、快递员安排
2.交互过程
1)快递员验证客户身份,确认后发送取件码
customer/courier---->EP:account||password||TS1
EP---->customer/courier::EKC[arrivetime||couriers]
account:顾客customer/快递员courier的用户账号;
password:顾客customer/快递员courier的账号对应的密码;
TS1:让EP验证customer/courier的时钟与EP的时钟是否同步的;
EKC:基于用户口令的加密,使得EP和customer/courier可以验证口令,并保护信息;
arrivetime:告诉客户快递预计到达手上的时间;
couriers:若在快递员手上,则告诉顾客快递员的编号,并告诉快递员顾客的编号;
2)客户验证快递员身份,得到取件码
courier-->EP:account2||applypassword||TS1
EP-->courier:EKC[Kcourier,customer||issucceed]
EP-->customer:EKC[Kcourier,customer||position]
系统告诉快递员密钥,以及是否成功向顾客发送信息,并告诉顾客密钥。
account2:客户的账号;
applypassword:向系统申请密钥;
TS1:让EP验证courier的时钟与EP的时钟是否同步的;
Kcourier,customer:由EP产生的密钥,用于courier和customer之间进行信息交换;
issucceed:EP是否成功向用户发送信息;
3.取件成功