从 RFC 登录用户到密钥视图权限,AS Java 中 Web Service Security 的完整配置思路
在 SAP PI 或 SAP Process Integration 的老项目里,很多接口表面上只是一个发送方协议、一个接收方协议、一个 Message Mapping,再配几个 Agreement 就能跑起来。可一旦客户提出消息级安全要求,事情马上会变得不一样。传输层的 HTTPS 只负责把网络通道加密,消息离开通道之后,是否还能保持签名、加密、可验证,就要靠 Web Service Security 这一层来兜底。放在 SAP NetWeaver usage type AS Java 里看,这件事并不是单纯维护一个证书,也不是只给某个用户加一个管理员角色,而是要把 AS ABAP 侧的 RFC 目标、AS Java 侧的 UME 授权、Web Service Security 处理应用、Keystore 视图权限,以及 Java Runtime Environment 的加密能力连成一条完整链路。SAP 官方文档把这个配置入口放在 SAP NetWeaver Administrator,也就是平时常说的 NWA。路径是 Configuration Management、Security Management、Identity Management,别名是/nwa/identity。这一步的目标,是为 central Adapter Engine 分配安全动作,也就是 security actions。SAP 在同一篇帮助页面里明确提到,配置 SAP NetWeaver usage type AS Java 的 Web service security 时,需要通过 NWA 的 Identity Management 完成相关 security actions 的分配。(