Developing SPIs for LiveCycle ES > Creating Custom Authentication Providers > Defining the component XML file for the authentication provider

Defining the component XML file for the authentication provider
You must define a component XML file in order to deploy the authentication provider component. A component XML file exists for each component and provides metadata about the component. For information about the component XML file, see Component XML Elements.
The following component.xml file is used for the authentication provider. Notice that the service name is SampleAuthenticationManagerService and the operations this service exposes are named authenticate and getConfigName.
Example: Defining the component XML file for the authentication provider
<component xmlns="http://adobe.com/idp/dsc/component/document">
   <component-id>com.adobe.livecycle.samples.authentication.SampleAuthenticationManagerService</component-id>
   <version>1.0</version>    
   <bootstrap-class>com.adobe.livecycle.samples.authentication.BootstrapImpl</bootstrap-class>
   <lifecycle-class>com.adobe.livecycle.samples.authentication.LifeCycleImpl</lifecycle-class>
   <descriptor-class>com.adobe.idp.dsc.component.impl.DefaultPOJODescriptorImpl</descriptor-class>
   <search-order>PARENT_FIRST</search-order>
   <class-path></class-path>
   <dynamic-import-packages>
      <package version="1.0" isOptional="true">*</package>
   </dynamic-import-packages>
   <services>
      <service name="SampleAuthenticationManagerService">
      	  <implementation-class>com.adobe.livecycle.samples.authentication.SampleAuthenticationManager</implementation-class>
          <specifications>
				<specification spec-id="com.adobe.idp.um.spi.authentication.AuthProvider"/>
          </specifications>
         <operations>
            <operation name="authenticate" method="authenticate" >
               <input-parameter name="credential" type="java.util.Map" />
               <input-parameter name="authConfigs" type="java.util.List" />
               <output-parameter name="echoed-value" type="com.adobe.idp.um.spi.authentication.AuthResponse"/>
            </operation>
            <operation name="getConfigName" method="getConfigName" >
               <output-parameter name="echoed-value" type="java.lang.String"/>
            </operation>
           </operations>
       </service>
   </services>
</component>
 

Developing SPIs for LiveCycle ES > Creating Custom Authentication Providers > Defining the component XML file for the authentication provider

Programming with LiveCycle ES (LiveDocs)
Adobe LiveCycle ES Update 1

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/000924.html