AnsweredAssumed Answered

How can we decrypt the value returned by getContext().getConnectionProperties().getProperty("_password") when developing a custom connector?

Question asked by RoyChristopherDomacena4691 on Dec 6, 2013
Latest reply on Dec 9, 2013 by jplater

     Hi,

     I'm trying to create a Custom Connector and whenever I try to get the value from a password field type via properties (seen below) in my code it seems I get an encrypted value.

     This is how I try to get the value for the password field;

     getContext().getConnectionProperties().getProperty("_password");

     This is the connector-descriptor.xml

     <GenericConnectorDescriptor requireConnectionForBrowse="false" browsingType="any">
      <field id="username" label="Username" type="string"/>
      <field id="_password" label="Password" type="password"/>
      <operation types="EXECUTE"/>
     </GenericConnectorDescriptor>

     Can you please let me know how i can get the decrypted value of the password within our custom connector please?

     Thanks

Outcomes