How to Create Sequential Tokens
To create sequential tokens when using the API, call insert() from your application and use the sequential token vault. The method is overloaded, so there are a few options here, but creating a sequential token is no different from creating any other type of token, except that you pass TokenService.SEQUENTIAL_TOKEN as the format.
To create a sequential token, ensure that a sequential token vault already exist.
Example:
insert("1234567890123456", "A_VAULT", TokenService.SEQUENTIAL_TOKEN, true)
To create sequential tokens when using the web service, call InsertBatch, InsertBatchWithCustomData, InsertToken, or InsertTokenWithCustomData as usual, but use the sequential token vault and pass the sequential format integer: 2.
SafeNetTokenizerStub.InsertToken insert = new SafeNetTokenizerStub.InsertToken();
insert.setNaeUser( KeyManagerUser);
insert.setNaePassword( KeyManagerUserPassword );
insert.setDbUser( dbUser );
insert.setDbPswd( dbUserPassword );
insert.setTableName(A_VAULT);
insert.setFormat( new Integer(2) );
insert.setValue( "1234567890123456" );
insert.setLuhnCheck( true );