Estou usando a configuração do Jboss4.2.2 para Identidade configurada com criptografia baseada em senha (PBE). Alguém pode me dizer sobre o uso do server.password e como criá-lo.
project-prod-ds.xml
<local-tx-datasource>
<jndi-name>mobeeadminDatasource</jndi-name>
<use-java-context>false</use-java-context>
<connection-url>jdbc:oracle:thin:@localhost:1521:xe</connection-url>
<driver-class>oracle.jdbc.OracleDriver</driver-class>
<security-domain>EncryptedOracleDbRealm</security-domain>
</local-tx-datasource>
<mbean code="org.jboss.security.plugins.JaasSecurityDomain"
name="jboss.security:service=JaasSecurityDomain,domain=ServerMasterPassword">
<constructor>
<arg type="java.lang.String" value="ServerMasterPassword"></arg>
</constructor>
<!-- The opaque master password file used to decrypt the encrypted
database password key -->
<attribute name="KeyStorePass">{CLASS}org.jboss.security.plugins.FilePassword:${jboss.server.home.dir}/conf/server.password</attribute>
<attribute name="Salt">mobeeadm</attribute>
<attribute name="IterationCount">13</attribute>
</mbean>
<mbean code="org.jboss.jdbc.HypersonicDatabase"
name="jboss:service=Hypersonic,database=mobeeadminDatasource">
<attribute name="Database">mobeeadminDatasource</attribute>
<attribute name="InProcessMode">true</attribute>
</mbean>
login-config.xml
<application-policy name="EncryptedOracleDbRealm">
<authentication>
<login-module code= "org.jboss.resource.security.JaasSecurityDomainIdentityLoginModule"
flag = "required">
<module-option name="username">kcbuser</module-option>
<module-option name="password">29gsr5RGZ9cUs5/sDXk81r</module-option>
<module-option name="managedConnectionFactoryName">
jboss.jca:service=LocalTxCM,name=mobeeadminDatasource
</module-option>
<module-option name="jaasSecurityDomain">
jboss.security:service=JaasSecurityDomain,domain=ServerMasterPassword
</module-option>
</login-module>
</authentication>
</application-policy>