Develop a custom TAI as a Liberty profile feature
Overview
We can develop a custom TAI as a Liberty profile feature by implementing the com.ibm.wsspi.security.tai.TrustAssociationInterceptor interface provided in the Liberty profile server and creating a product extension. For a general view of custom TAI, see Develop a custom TAI . For more information about product extensions, see Product extension. If we have multiple TAIs, we can configure all of them using either the user feature or the shared library. Do not mix the two TAI configurations.
Develop a custom TAI
- Implement the custom TAI.
- Convert the implementation class into an OSGi service.
Use one of the following methods...
- Convert the custom TAI class into a Declarative Service component.
- Write a new custom TAI class that is a DS component and delegate it to the custom TAI class.
- Register the custom TAI class directly in the Service Registry using the OSGi core APIs.
- Package the custom TAI as an OSGi bundle and export the custom TAI service.
- Create a feature manifest to include the OSGi bundle.
- After the feature is installed into the user product extension location, configure server.xml with the feature name. For example:
<featureManager> ... <feature>usr:customTaiSample-1.0</feature> </featureManager>
Parent topic: Develop a Liberty featureConcepts: Product extension
Develop a custom TAI
Work with the OSGi service registry
Declaring the services to OSGi Declarative Services
Liberty feature manifest files