cancel
Showing results for 
Search instead for 
Did you mean: 

Suggestions needed

Former Member
0 Kudos

Hi guys;

I was trying to work on a proj in which i am trying to encrypt data and send thru XI

1) How will XI recognize the file which I want to encrypt.

2) I am new to java mapping : How and why do we need to implement Stream transformation class : com.sap.aii.mapping.api

Thanks,

Kuna

Accepted Solutions (1)

Accepted Solutions (1)

moorthy
Active Contributor
0 Kudos

HI,

You can think of secure communication thru SSL configuration- with FTPS with Certificates-

http://help.sap.com/saphelp_nw2004s/helpdata/en/e3/94007075cae04f930cc4c034e411e1/content.htm

this blog may help u on digital signatures- /people/sap.user72/blog/2005/06/16/using-digital-signatures-in-xi

Regards,

moorthy

Former Member
0 Kudos

Hi Guys;

I have a java program which does encryption and decryption of File.

but how to use it in XI ,i am not sure abt it.

If any of you have any experince in it ,it would be good if you could share your experince.

Thanks,

Kuna

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

just like we said you can use the java program code in the adapter module

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Hi Kuna,

have a look at <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81">How to Create Modules for the J2EE Adapter Engine</a>.

Create a new module to be used by the receiver file adapter and inside it call the methods you have already developed.

Kind Regards,

Sergio

Former Member
0 Kudos

Hi Guys;

Like in sender adapter config in the Module Tab ,can I put java class instead of Bean.

Thanks,

Kuna

Former Member
0 Kudos

Hi Kuna,

you need bean, but it's very easy to convert existing java code into a bean following that guide.

Regards,

Sergio

Former Member
0 Kudos

Hi Guys;

The encryption is for a file not for a field so how can we use Graphical mapping as mentioned above?

Thanks.

Kuna

Former Member
0 Kudos

Hi Kuna,

do you need to do some kind of mapping in XI or you just need to use XI to move and encrypt the file?

Regards,

Sergio

Former Member
0 Kudos

Hi Sergio/Guys;

You are correct ,we do not basically need mapping ,we just need XI to move the data. The file which is being sent from sender needs to be encrypted.It shld be decrypted at receiver side.

So like in XI scenario we need to encrypt file being sent ,I dont feel we need any mapping as my understanding is growing now with u guys.

Thanks,

Kuna

Former Member
0 Kudos

Hi Kuna,

you're right, in this case you do not need any mapping, that's why I suggested you to do encryption in the receiver adapter in a module.

Just a doubt: you need to secure the file or just the communication? If you just need to secure the communication you could use native file adapter FTPS that also support X509 certificates (http://help.sap.com/saphelp_erp2005vp/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm).

Kind Regards,

Sergio

Former Member
0 Kudos

Hi Guys;

At this point of time we r not doing channel security ,only the file encryption and decryption ,so point is i have a java code which encrypts and decrypts ,how do i make it to work for files being sent Thru XI.

Like what changes in settings i need to do. And what issues might come up ?

Thanks,

Kuna

Former Member
0 Kudos

Hi Kuna,

you just have to build an adapter module processor for the receiver file adapter that changes the payload of the message (not-encrypted) into an encrypted message using your java methods before writing the file locally or via FTP.

Then in XI you could even avoid file content conversion in sender/receiver file adapter (if you don't need to do any mapping).

It's a simple file to file scenario + adapter module processor I do not think you should have great troubles doing it.

Kind Regards,

Sergio

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi ,

I am sure we can perform through java mappings, but I do not think it is possible to do payload encryption in graphical mapping.

Hope this answers your question. All the best

cheers,

Prashanth

P.S Please mark helpful answers

Former Member
0 Kudos

Hi Kuna,

I know we can use abstract classes FOR beans, but as a replacement, am not sure

cheers,

Prashanth

P.S Please mark helpful answers

MichalKrawczyk
Active Contributor
0 Kudos

hi,

you will need to do the encrypotion youself (adapter module added

to the file adapter)

you can set that all files from one folder will be encrypted

so you just need to create one FTP communication channel

in which you will use the adapter module that you've developed

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Hi kuna,

XI will use the file name you'll specify in the sender file adapter to pick up the file and process it.

Generally you do not need java mapping, but you should prefer graphical message mapping, and in your case i think you could encrypt the file in the receiver communicational channel using an adapter module.

For adapter module have a look at: <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/02706f11-0d01-0010-e5ae-ac25e74c4c81">How to Create Modules for the J2EE Adapter Engine</a>

For public key encryption I suggest you to use the libraries provided by <a href="http://www.bouncycastle.org/">bouncycastle</a>, they are really easy to use.

Hope it helps,

Kind Regards,

Sergio