on 2008 Apr 04 12:55 PM
Hi Experts,
I have an requirement, I need to create a module in which I need to pass four values (Namely signing key, signing algorithm, encyption key and encryption algorithm) through parameters as inputs. Based on these parameters, I need to create the signature for the input xml file and I have to encrypted the file. Please Guide me. Give some useful links, documents or codes to how to do this. Help me in this regard.
Thanks in Advance,
Venkatesh.K
Have a look at the Java cryptographic arhictecture and start from there
http://java.sun.com/j2se/1.4.2/docs/guide/security/CryptoSpec.html
Start with that, and do some google searches
Note that SAP Java AS is using the IAIK security library(http://jce.iaik.tugraz.at/) on top of Java cryptographic arhictecture and therefore will support more cryptographic algorithms
Regards
Dagfinn
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkatesh,
The use of SsfDataSMIME class is the same as for SsfDataXML because both implement the same interface ISsfData. The only differences between them are the construction methods.
To create a instance from SsfDataSMIME class you have to pass two arguments: the (MIME) message itself, as InputStream or MimeMessage object, and the context of the (MIME) message that can be null.
After that you can sign and/or encrypt the (MIME) message the same way, using the same methods, like you did for SsfDataXML object.
Hope it helps.
Please reward if so.
Regards
Alexandre
Hi Aldo,
The java packages where this classes and interfaces are implemented are:
- com.sap.security.api.ssf
- com.sap.security.core.server.ssf
You can find this in the jar file tc_sec_ssf.jar.
Also look the following SAP Help link [Secure Store and Forward Mechanism (SSF)|http://help.sap.com/saphelp_nw2004s/helpdata/en/4d/bf6f77a2c5446a86e0152f1b309db6/frameset.htm]
Please reward if helpful.
Regards
Alexandre
User | Count |
---|---|
82 | |
12 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.