Configuration

Role Configuration

<role
    name="org.apache.fulcrum.pbe.PBEService"
    shorthand="PBEService"
    default-class="org.apache.fulcrum.pbe.PBEServiceImpl"
    early-init="true"
    component-type="merlin"
    description="Provides Password Based Encyrption using JCA/JCE"
/>
          

Component Configuration

The configuration parameters are basically used to make the service compatible with existing applications using password based encryption.

ItemDatatypeOptionalDescription
cryptoAlgorithmStringY Defines the JCE provider to be used. Depending on your environement you leave it empty to get an appropriate implementation automatically or use "SunJCE" or "BC"
cryptoSaltStringY Contains the hex-encoded salt for PBE
cyrptoCountintY Defines the count for PBEParameterSpec
passwordCountintY Defines the number of SHA-1 invocations to create the password. Changing this value creates completely different passwords.

Component Configuration Example

  <PBEService>
    <cryptoAlgorithm>PBEWithMD5AndDES</cryptoAlgorithm>
    <cryptoSalt>4463657541544141</cryptoSalt>
    <cyrptoCount>20</cyrptoCount>
    <cryptoProvider></cryptoProvider>
    <passwordCount>40</passwordCount>
  </PBEService>