CREATEGENVALTOKENFORMAT
Create a new token format which either generates a token based on ITokenGenerator
or validates a token based on ITokenValidator
.
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.
Define a class that implements the interface.
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
.
ITOKENVAL - Allows the user to create custom token validation functions, even though CT-V still creates the token.
Following code snippet explains the procedure of implementing itokenvalidator:
There is an interface in the CT-V jarfile.
Define a class to validate the generated token.
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.validators.MyValidator
.
VALIDATORFORMAT - The format in which token is required.
From the common parameters, refer to the source code below for exact parameters.
Note
A token is either generated or validated so, either ITOKENGEN or ITOKENVAL parameter is specified.
Export Parameters
- FORMATNUMBER - The integer representing the new token format. This value will be greater than 100.
Source Code