Fix Pack 8550

Developing a custom user registry for the Liberty profile

You can develop a custom user registry class by implementing the com.ibm.websphere.security.UserRegistry interface provided in the Liberty profile server.

About this task

The UserRegistry interface is a Service Programming Interface (SPI) that enables support to virtually any type of account repository. For a general view of stand-alone custom registries, see Stand-alone custom registries.

Procedure

  1. Implement the custom user registry. For more information, see Developing the UserRegistry interface for using custom registries.
  2. Convert the implementation class into an OSGi service. You can do the conversion in the following ways:
  3. Package the custom user registry as an OSGi bundle and export the UserRegistry service. For information on creating an OSGi bundle, see Creating an OSGi service bundle.
  4. Create a feature manifest to include the OSGi bundle. For more information, see Liberty profile: Product extension.
  5. After the feature is installed into the user product extension location, configure the server.xml file with the feature name. For example:
    <featureManager>
       ...
       <feature>usr:customRegistrySample-1.0</feature>
    </featureManager>

    For a downloadable custom user registry sample, see https://www.ibmdw.net/wasdev/repo/productsample_customuserregistrysample/.

    For more information, see https://www.ibmdw.net/wasdev/docs/creating-a-custom-user-registry-as-a-liberty-user-feature/.


Icon that indicates the type of topic Task topic

Terms and conditions for information centers | Feedback


Timestamp icon Last updated: Monday, 21 April 2014
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-nd-mp&topic=twlp_sec_custmr
File name: twlp_sec_custmr.html