Uploaded image for project: 'Fuse/AMQ Documentation'
  1. Fuse/AMQ Documentation
  2. FUSEDOC-871

add the doc for org.apache.karaf.jaas.modules.properties.AutoEncryptionSupport in "Encrypting Stored Passwords" section"

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 6.2.0
    • 6.2.0
    • None
    • None

      In JBoss FUSE 6.2 we introduce a org.apache.karaf.jaas.modules.properties.AutoEncryptionSupport class to automatically encrypt the passwords in users.properties without login if users configure the jaas realm to enable the encryption. So in "Encrypting Stored Passwords" section, besides the encryption properties in <jaas:module..., aslo need add AutoEncryptionSupport bean configuration like

      <bean class="org.apache.karaf.jaas.modules.properties.AutoEncryptionSupport"
                  init-method="init" destroy-method="destroy">
              <argument>
                  <map>
                      <entry key="org.osgi.framework.BundleContext" value-ref="blueprintBundleContext"/>
                      <entry key="users" value="$[karaf.base]/etc/users.properties"/>
                      <entry key="encryption.name" value="jasypt"/>
                      <entry key="encryption.enabled" value="true"/>
                      <entry key="encryption.prefix" value="{CRYPT}"/>
                      <entry key="encryption.suffix" value="{CRYPT}"/>
                      <entry key="encryption.algorithm" value="SHA-256"/>
                      <entry key="encryption.encoding" value="base64"/>
                      <entry key="encryption.iterations" value="100000"/>
                      <entry key="encryption.saltSizeBytes" value="16"/>
                  </map>
              </argument>
          </bean>
      

          There are no Sub-Tasks for this issue.

              jmurphey_jira Jane Murphey (Inactive)
              yfang@redhat.com Freeman(Yue) Fang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 4 days
                  4d
                  Remaining:
                  Time Spent - 6 hours, 45 minutes Remaining Estimate - 3 days, 1 hour, 15 minutes
                  3d 1h 15m
                  Logged:
                  Time Spent - 6 hours, 45 minutes Remaining Estimate - 3 days, 1 hour, 15 minutes
                  6h 45m