MASK
Create a token without inserting it in the database.
Import Parameters
ITOKENGEN - Allows users to create custom tokenization functions that define the way data is tokenized.
Following code snippet explains the procedure of implementing itokengenerator:
There is an interface in the CT-V jarfile.
public interface com.safenet.token.ITokenGenerator { public String generateToken( String value ) throws TokenException; }
Define a class that implements the interface.
package com.customer.code.tokenizers; class MyTokenizer implements com.safenet.token.ITokenGenerator { String generateToken( String value ) throws TokenException { // For simplicity, defers to customer tokenizer function. return tokenizeFunction( value ); } }
Create a jar and place it in the
<SAP Binaries>\lib\classes
.Note
<SAP Binaries>
is the location set during installation. Refer to Installing SAP Binaries for details.Restart the SAPTM windows service.
Enter the value for this parameter as:
com.customer.code.tokenizers.MyTokenizer
.From the common parameters, refer to the source code below for exact parameters.
Table Parameters
VALUE - An array of values (Input parameter).
TOKEN - An array of tokens corresponding to the value array (Output parameter).
Source Code
FUNCTION MASK.
*"----------------------------------------------------------------------
*"*"Local Interface:
*" IMPORTING
*" VALUE(NAEUSER) TYPE STRING
*" VALUE(NAEPASSWORD) TYPE STRING
*" VALUE(DBUSER) TYPE STRING
*" VALUE(DBPASSWORD) TYPE STRING
*" VALUE(ITOKENGEN) TYPE STRING
*" TABLES
*" VALUE STRUCTURE ZSTR STRUCTURE
*" TOKEN STRUCTURE ZSTR STRUCTURE
*"----------------------------------------------------------------------
ENDFUNCTION.