Platform Framework
R24 AMR | Min(s) read

Configuring JBC and Java APIs

This section helps you with the configuration of JBC and Java APIs. JBC APIs are interface to access Sign and Verify features from an Infobasic program by using CALLJ, whereas Java APIs are interface to access Sign and Verify features from a Java program.

Configuring a JBC API

You can configure a JBC API using the following procedure.

  1. Copy all the dependency JARs from TAFJHome\3rdParty\integrity to TAFJHome\lib.

  2. Edit the keystore.properties file, which is available under resource/conf folder in TemenosSecurityWeb.war.

    If the keystore is available as a physical file in the machine, then provide the path in the temn.keystore.location property . You can specify multiple paths separated by commas (,).

    If the keystore is available in database, then specify the following properties:

    • temn.keystore.database.url
    • temn.keystore.database.driver
    • temn.keystore.database.user
    • temn.keystore.database.password
    The keystore is read from the database, only when the location is not provided.
  3. Use CALLJ to access the Sign API from JBC. To perform this step, you need to use com.temenos.security.jbc.Integrity as package.class to access the sign method as shown in the following sample request:

  4. Specify the message type at <1,12> and the digest algorithm at <1,13>. The message can be classified as XML type as shown below. SHA1, SHA256, SHA512 are supported digest algorithms. In case, if the digest algorithm is not set, then SHA1 is used as default algorithm. If the message is classified as XML, then the <signature> element is added to the actual message and provided as output for the Sign API.
    signRequest<1,12> = "XML" ;*Message Type
    signRequest<1,13> = "SHA256" ;* Digest Algorithm
    
  5. Use CALLJ to access the Verify API from JBC. To perform this step, you need to use com.temenos.security.jbc.Integrity as package.class to access the verify method as shown in the following sample request:

  6. Set the message type as XML to verify the message signed as XML as shown below. Here, the message with the <signature> element should be available at <1,9>.
    signRequest<1,payload>=returnValue
    signRequest<1,12> = "XML" ;*Message Type
    
  7. EB.SEC.INTEGRITY.API is a wrapper available for Temenos Transact to use the Message Integrity API.

Configuring a Java API

Procedure

  1. Add the TemenosSecurity.jar file and the dependency libraries available at $TAFJ_HOME\3rdParty\integrity in the classpath.
  2. Edit the KeyConfig.json file in TemenosSecurity.jar/conf with the key that needs to be used for sign or verify operation.

Copyright © 2020- Temenos Headquarters SA

Published on :
Monday, May 27, 2024 5:03:43 PM IST