Skip to content

Commit

Permalink
Merge pull request #1 from mosip/InitialImport
Browse files Browse the repository at this point in the history
This is the initial commit
  • Loading branch information
RamaduraiPandian1989 authored Nov 22, 2019
2 parents e7db0f8 + 91b533c commit 0d80c2f
Show file tree
Hide file tree
Showing 770 changed files with 493,255 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
*.class
.mtj.tmp/
*.jar
*.war
*.ear
hs_err_pid*
target/
.metadata
.classpath
.project
.settings/
bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.loadpath
.DS_Store
*.log
*.zip
*.logs
*.ucls
*.useq
/PacketStore/*
/PreRegPacketStore/*
reg/*
/test-output/
/reg/
/derby.log
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added IDA/Reports/pt_ida_eKYC-OTP_25Feb2019.pdf
Binary file not shown.
1,471 changes: 1,471 additions & 0 deletions IDA/Scripts/Sprint13_08July/Ida_demo_uin_auth.jmx

Large diffs are not rendered by default.

2,081 changes: 2,081 additions & 0 deletions IDA/Scripts/Sprint13_08July/pt_ida_authentication-OTP.jmx

Large diffs are not rendered by default.

601 changes: 601 additions & 0 deletions IDA/Scripts/Sprint13_08July/pt_ida_eKYC.jmx

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

857 changes: 857 additions & 0 deletions IDA/Scripts/Sprint14_28July/Authentication/demo_auth_name_dob_uin.jmx

Large diffs are not rendered by default.

390 changes: 390 additions & 0 deletions IDA/Scripts/Sprint14_28July/Authentication/demo_auth_name_dob_vid.jmx

Large diffs are not rendered by default.

648 changes: 648 additions & 0 deletions IDA/Scripts/Sprint14_28July/Authentication/demo_auth_name_otp_uin.jmx

Large diffs are not rendered by default.

1,100 changes: 1,100 additions & 0 deletions IDA/Scripts/Sprint14_28July/Authentication/demo_auth_name_otp_vid.jmx

Large diffs are not rendered by default.

2,093 changes: 2,093 additions & 0 deletions IDA/Scripts/Sprint14_28July/Authentication/otp_auth_uin.jmx

Large diffs are not rendered by default.

642 changes: 642 additions & 0 deletions IDA/Scripts/Sprint14_28July/Authentication/otp_auth_vid.jmx

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,768 changes: 1,768 additions & 0 deletions IDA/Scripts/Sprint14_28July/DataCreation/demo_auth_name_otp_dataScript.jmx

Large diffs are not rendered by default.

540 changes: 540 additions & 0 deletions IDA/Scripts/Sprint14_28July/DataCreation/ida_eKYC_uin_dataGenerate.jmx

Large diffs are not rendered by default.

541 changes: 541 additions & 0 deletions IDA/Scripts/Sprint14_28July/DataCreation/ida_eKYC_vid_dataGenerate.jmx

Large diffs are not rendered by default.

1,768 changes: 1,768 additions & 0 deletions IDA/Scripts/Sprint14_28July/DataCreation/otp_auth_uin_dataScript.jmx

Large diffs are not rendered by default.

1,813 changes: 1,813 additions & 0 deletions IDA/Scripts/Sprint14_28July/DataCreation/otp_auth_vid_dataScript.jmx

Large diffs are not rendered by default.

424 changes: 424 additions & 0 deletions IDA/Scripts/Sprint14_28July/eKYC/ida_eKYC_using_otp_uin.jmx

Large diffs are not rendered by default.

413 changes: 413 additions & 0 deletions IDA/Scripts/Sprint14_28July/eKYC/ida_eKYC_using_otp_vid.jmx

Large diffs are not rendered by default.

3,428 changes: 3,428 additions & 0 deletions IDA/Scripts/Sprint17_3Sept/Authentication/auth_all_scripts.jmx

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

857 changes: 857 additions & 0 deletions IDA/Scripts/Sprint17_3Sept/Authentication/demo_auth_name_dob_uin.jmx

Large diffs are not rendered by default.

390 changes: 390 additions & 0 deletions IDA/Scripts/Sprint17_3Sept/Authentication/demo_auth_name_dob_vid.jmx

Large diffs are not rendered by default.

648 changes: 648 additions & 0 deletions IDA/Scripts/Sprint17_3Sept/Authentication/demo_auth_name_otp_uin.jmx

Large diffs are not rendered by default.

1,100 changes: 1,100 additions & 0 deletions IDA/Scripts/Sprint17_3Sept/Authentication/demo_auth_name_otp_vid.jmx

Large diffs are not rendered by default.

1,815 changes: 1,815 additions & 0 deletions IDA/Scripts/Sprint17_3Sept/Authentication/otp_auth_uin.jmx

Large diffs are not rendered by default.

648 changes: 648 additions & 0 deletions IDA/Scripts/Sprint17_3Sept/Authentication/otp_auth_vid.jmx

Large diffs are not rendered by default.

9,755 changes: 9,755 additions & 0 deletions IDA/Scripts/Sprint17_3Sept/DataCreation/auth_all_scripts-data_generate.jmx

Large diffs are not rendered by default.

643 changes: 643 additions & 0 deletions IDA/Scripts/Sprint17_3Sept/DataCreation/demo_address_data_generate.jmx

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1,768 changes: 1,768 additions & 0 deletions IDA/Scripts/Sprint17_3Sept/DataCreation/demo_auth_name_otp_dataScript.jmx

Large diffs are not rendered by default.

540 changes: 540 additions & 0 deletions IDA/Scripts/Sprint17_3Sept/DataCreation/ida_eKYC_uin_dataGenerate.jmx

Large diffs are not rendered by default.

541 changes: 541 additions & 0 deletions IDA/Scripts/Sprint17_3Sept/DataCreation/ida_eKYC_vid_dataGenerate.jmx

Large diffs are not rendered by default.

1,825 changes: 1,825 additions & 0 deletions IDA/Scripts/Sprint17_3Sept/DataCreation/otp_auth_uin_dataScript.jmx

Large diffs are not rendered by default.

1,819 changes: 1,819 additions & 0 deletions IDA/Scripts/Sprint17_3Sept/DataCreation/otp_auth_vid_dataScript.jmx

Large diffs are not rendered by default.

12,048 changes: 12,048 additions & 0 deletions IDA/Scripts/Sprint19_7Sept/auth_all_scripts-data_generate.jmx

Large diffs are not rendered by default.

4,192 changes: 4,192 additions & 0 deletions IDA/Scripts/Sprint19_7Sept/auth_all_scripts.jmx

Large diffs are not rendered by default.

17,723 changes: 17,723 additions & 0 deletions IDA/Scripts/Sprint22_11November/auth_all_scripts-data_generate.jmx

Large diffs are not rendered by default.

6,670 changes: 6,670 additions & 0 deletions IDA/Scripts/Sprint22_11November/ida_auth_all.jmx

Large diffs are not rendered by default.

613 changes: 613 additions & 0 deletions IDA/Scripts/Sprint22_11November/ida_eKYC_all.jmx

Large diffs are not rendered by default.

1,167 changes: 1,167 additions & 0 deletions IDA/Scripts/Sprint22_11November/ida_eKYC_all_dataGenerate.jmx

Large diffs are not rendered by default.

1,627 changes: 1,627 additions & 0 deletions IDA/Scripts/pt_ida_authentication-OTP.jmx

Large diffs are not rendered by default.

1,155 changes: 1,155 additions & 0 deletions IDA/Scripts/pt_ida_authentication-demographic-OTP.jmx

Large diffs are not rendered by default.

982 changes: 982 additions & 0 deletions IDA/Scripts/pt_ida_authentication-demographic.jmx

Large diffs are not rendered by default.

1,179 changes: 1,179 additions & 0 deletions IDA/Scripts/pt_ida_eKYC-OTP.jmx

Large diffs are not rendered by default.

4,300 changes: 4,300 additions & 0 deletions IDA_PtDataUtil/Data_source/identity_data.csv

Large diffs are not rendered by default.

70 changes: 70 additions & 0 deletions IDA_PtDataUtil/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>mosip.pt</groupId>
<artifactId>IDA_PtDataUtil</artifactId>
<version>0.0.1-SNAPSHOT</version>
<dependencies>

<!-- https://mvnrepository.com/artifact/junit/junit -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>

<!-- https://mvnrepository.com/artifact/com.opencsv/opencsv -->
<dependency>
<groupId>com.opencsv</groupId>
<artifactId>opencsv</artifactId>
<version>4.1</version>
</dependency>

<!-- https://mvnrepository.com/artifact/com.google.code.gson/gson -->
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.8.5</version>
</dependency>

<!-- Below dependencies are for loading data from a YML file -->
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.2.3</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.4</version>
</dependency>

<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.21</version>
</dependency>

</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
</plugins>
</build>
</project>
96 changes: 96 additions & 0 deletions IDA_PtDataUtil/src/main/java/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
import java.io.FileNotFoundException;

import com.google.gson.Gson;

import pt.util.PropertiesUtil;
import pt.util.SequentialNumberGenerator;
import worker.AddressAuthDataGenerator;
import worker.AddressAuthDataUpdater;
import worker.FailedRequestWorker;
import worker.IdvIdExtractor;
import worker.NameAuthDataUpdater;
import worker.NameAuthdataGenerator;

public class Main {

private static final String CONFIG_FILE = "variables_config.properties";

// static Gson gson = new Gson();

public static void main(String[] args) {

// new PropertiesUtil().loadProperties_debug();
Integer number = 100001;
SequentialNumberGenerator.assignStartIndex(number);
new PropertiesUtil().loadProperties(CONFIG_FILE);
// PropertiesUtil.loadProperties();
//generateAddressAuthData();
// generateNameAuthRequest();
updateGeneratedAuthData();
// extractIdvId();
// System.lineSeparator();
// handleFailedRequests();

// new Util().currDD();

// String jsonFile = "/auth/demo_auth_data.json";
// DemoAuthEntity aE = JSONUtil.mapJSONToObject(jsonFile);
// System.out.println(gson.toJson(aE));

}

private static void handleFailedRequests() {

int[] fileSuffix0 = { 855, 1020, 1193, 1609, 3655, 3746, 3815, 4312, 4795 };
int[] fileSuffix = { 1936, 1967 };
FailedRequestWorker worker = new FailedRequestWorker();
worker.processFailedRequests(fileSuffix);

}

private static void extractIdvId() {

IdvIdExtractor vidExtractor = new IdvIdExtractor();
vidExtractor.extractIdvId();

}

private static void updateGeneratedAuthData() {

AddressAuthDataUpdater addressDataUpdater = new AddressAuthDataUpdater();
NameAuthDataUpdater nameDataUpdater = new NameAuthDataUpdater();

try {
addressDataUpdater.updateAdressAuthData();
nameDataUpdater.updateNameAuthData();
} catch (FileNotFoundException e) {
e.printStackTrace();
}

}

private static void generateAddressAuthData() {

AddressAuthDataGenerator d = new AddressAuthDataGenerator();
try {
d.processData();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}
}

private static void generateNameAuthRequest() {

NameAuthdataGenerator nGen = new NameAuthdataGenerator();
try {
nGen.loadJsons();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (Exception e) {
e.printStackTrace();
}

}
}
34 changes: 34 additions & 0 deletions IDA_PtDataUtil/src/main/java/pt/dto/auth/AddressAuthEntity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package pt.dto.auth;

public class AddressAuthEntity {

private AddressIdentityRequest identityRequest;
private String tspID;

public AddressAuthEntity() {

}

public AddressAuthEntity(AddressIdentityRequest identityRequest, String tspID) {
super();
this.identityRequest = identityRequest;
this.tspID = tspID;
}

public AddressIdentityRequest getIdentityRequest() {
return identityRequest;
}

public void setIdentityRequest(AddressIdentityRequest identityRequest) {
this.identityRequest = identityRequest;
}

public String getTspID() {
return tspID;
}

public void setTspID(String tspID) {
this.tspID = tspID;
}

}
39 changes: 39 additions & 0 deletions IDA_PtDataUtil/src/main/java/pt/dto/auth/AddressIdentity.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package pt.dto.auth;

import java.util.List;

public class AddressIdentity {

private List<Data> addressLine1;
private List<Data> addressLine2;
private List<Data> addressLine3;

public AddressIdentity() {

}

public List<Data> getAddressLine1() {
return addressLine1;
}

public void setAddressLine1(List<Data> addressLine1) {
this.addressLine1 = addressLine1;
}

public List<Data> getAddressLine2() {
return addressLine2;
}

public void setAddressLine2(List<Data> addressLine2) {
this.addressLine2 = addressLine2;
}

public List<Data> getAddressLine3() {
return addressLine3;
}

public void setAddressLine3(List<Data> addressLine3) {
this.addressLine3 = addressLine3;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package pt.dto.auth;

public class AddressIdentityRequest {

private AddressIdentity identity;

public AddressIdentityRequest() {

}

public AddressIdentityRequest(AddressIdentity identity) {
this.identity = identity;
}

public AddressIdentity getIdentity() {
return identity;
}

public void setIdentity(AddressIdentity identity) {
this.identity = identity;
}

}
Loading

0 comments on commit 0d80c2f

Please sign in to comment.