seclore-java-sdk/examples/Protect & Wrap with Hot Folder/Using Enterprise Policy Server/Sample Code/doc/Developer_s Reference.txt

38 lines
1.2 KiB
Plaintext
Executable File

FileSecure Interfaces integration source code reference.
FS Helper Initialization
------------------------
- At application startup initializing FSHelperlibrary and FSHelper
- Below classes are used for the same
- SecloreMain
- static block :-
InitializeWSClient.initializeHelperLibrary((FSHELPERLIBRARY_CONFIG_XML_PATH, ););
InitializeWSClient.initializeHelper(HELPER_INSTANCE_KEY, FSHELPER_RESOURCE_PATH, FSHELPER_CONFIG_XML_PATH, );
- InitializeWSClient
- initializeHelperLibrary( ... )
- initializeHelper( ... )
Main Class
------------
- com.seclore.fs.protect.example.main
- SecloreMain class
Note:
=====
while preparing xml string for request or response. please escape below spacial character for the string which will be written within xml tag.
"&" -> "&"
"<" -> "&lt;"
">", -> "&gt;"
"\"" -> "&quot;"
"'" -> "&apos;";
Refer: com.seclore.fs.protect.example.util.XMLUtil class and
- escapeForXML () method
Example: sample xml is "<request><file-name>Sample Sales & purchase report.pdf</file-name><request>"
here "Sample Sales and purchase report" should be escaped.
Use: String fileName = XMLHelper.escapeForXML( "Sample Sales & purchase report" );
"<request><file-name>"+fileName+"</file-name><request>"