如何扩展WebCenter Spaces 应用程序
<description>Default JPS Keystore Service</description>
<property name="keystore.type" value="JKS"/>
<property name="keystore.csf.map" value="oracle.wsm.security"/>
<property name="keystore.pass.csf.key" value="keystore-csf-key"/>
<property name="keystore.sig.csf.key" value="enc-csf-key"/>
<property name="keystore.enc.csf.key" value="enc-csf-key"/>
</serviceInstance>
c. 备份cwallet.sso
d. 打开一个命令行
e.找到Jdeveloper安装目录C:\Jdev\jdeveloper\common\bin
f.运行以下命令In Windows: wlst.cmd 、In Linux: ./wlst.sh
g.Run: connect('admin_user', 'admin_password', 'host:port')
Where:
admin_user is the user name for the administrator of the server on which the application is running
(for example, weblogic)
admin_password is the password for the administrator
host:port is the server on which the application is running
h.Run the following commands:
createCred(map="oracle.wsm.security", key="enc-csf-key", user="alias",
password="key_password", desc="Enc Password")
createCred(map="oracle.wsm.security", key="sign-csf-key", user="alias",
password="key_password",desc="Enc Password")
createCred(map="oracle.wsm.security",key="keystore-csf-key",user="keystore-csf-key",
password="keystore_password", desc="Keystore password")
Where:
alias is the consumer public alias key in the keystore
key_password is the password for the public key
keystore_password is the keystore password
i.重启部署应用的服务器
4.设置WebCenter Spaces客户端上下文
a.当你部署在WLS上的应用程序调用Webcenter Spaces APIs时域范围内的配置被使用,除非你不
重写他们。使用GroupSpaceWSContext类提供的API覆盖或设置安全配置参数。
特别是,你必须为WebcenterSpaces设置SAML issuer name 和public key alias,这些都需要数
据加密。如果WebCenter Spaces Web service的端口没有设置在connections.xml文件中。你也
可以像如下这样设置:
GroupSpaceWSContext context = new GroupSpaceWSContext();
context.setEndPoint("endPointUrl");
context.setSamlIssuerName("samlIssuer");
context.setRecipientKeyAlias("producer");
groupSpaceWSClient = new GroupSpaceWSClient(context);
where:
1.endPointUrl是WebCenter Spaces Web service的端口,
如::8912/webcenter/SpacesWebService).

