-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19 from 2060-io/feat/add-emrtd-command
feat: add eMRTD command
- Loading branch information
Showing
10 changed files
with
173 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Changelog | ||
|
||
## [2.0.12](https://central.sonatype.com/artifact/io.2060/service-agent-java-client/2.0.12) (2024-10-22) | ||
|
||
|
||
### Features | ||
|
||
* feat: implement EMrtdData in dataGroups ([468ea49](https://github.com/2060-io/2060-service-agent-java-client/pull/19/commits/468ea4934be6e778346667374a6ff21871c0eee1)) | ||
* Add eMRTD commands to NFC reading ([55b7937](https://github.com/2060-io/2060-service-agent-java-client/pull/19/commits/55b79378c9416c8b1aee6f98e2ee3eb29d268fbb)) | ||
* Add randomCipheringData method ([c7d85f5](https://github.com/2060-io/2060-service-agent-java-client/pull/19/commits/c7d85f5c80f890c9c8c0cc8b2cf54fb5d09ef6b2)) | ||
|
||
## [2.0.11](https://central.sonatype.com/artifact/io.2060/service-agent-java-client/2.0.11) (2024-10-07) | ||
|
||
|
||
### Features | ||
|
||
* Add I18n manager ([a0bc1a4](https://github.com/2060-io/2060-service-agent-java-client/commit/a0bc1a4dd265abe4670afa14a5c2003a5a248621)) | ||
|
||
## [2.0.10](https://central.sonatype.com/artifact/io.2060/service-agent-java-client/2.0.10) (2024-10-02) | ||
|
||
|
||
### Features | ||
|
||
* Add mrz message parameters ([5dc9cd1](https://github.com/2060-io/2060-service-agent-java-client/commit/5dc9cd16635bcc3605b9ee66d1e2425d37396117)) | ||
|
||
## [2.0.9](https://central.sonatype.com/artifact/io.2060/service-agent-java-client/2.0.9) (2024-10-01) | ||
|
||
|
||
### Features | ||
|
||
* Add profile message parameters ([63d65f3](https://github.com/2060-io/2060-service-agent-java-client/commit/63d65f3143ade06b8c2f3c571d34b589bde76699)) | ||
|
||
## [2.0.8](https://central.sonatype.com/artifact/io.2060/service-agent-java-client/2.0.8) (2024-09-27) | ||
|
||
|
||
### Features | ||
|
||
* Add call's command ([471ed0f](https://github.com/2060-io/2060-service-agent-java-client/commit/471ed0f17f89ae8906de9c5e6299396fc9cacce2)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 6 additions & 21 deletions
27
src/main/java/io/twentysixty/sa/client/model/message/Ciphering.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,16 @@ | ||
package io.twentysixty.sa.client.model.message; | ||
|
||
import java.io.Serializable; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
@Setter | ||
@Getter | ||
@ToString | ||
public class Ciphering implements Serializable { | ||
|
||
private static final long serialVersionUID = -8660299956191649637L; | ||
private String algorithm; | ||
private Parameters parameters; | ||
|
||
public String getAlgorithm() { | ||
return algorithm; | ||
} | ||
|
||
public void setAlgorithm(String algorithm) { | ||
this.algorithm = algorithm; | ||
} | ||
|
||
public Parameters getParameters() { | ||
return parameters; | ||
} | ||
|
||
public void setParameters(Parameters parameters) { | ||
this.parameters = parameters; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Ciphering [algorithm=" + algorithm + ", parameters=" + parameters + "]"; | ||
} | ||
} |
27 changes: 6 additions & 21 deletions
27
src/main/java/io/twentysixty/sa/client/model/message/Parameters.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,16 @@ | ||
package io.twentysixty.sa.client.model.message; | ||
|
||
import java.io.Serializable; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
@Setter | ||
@Getter | ||
@ToString | ||
public class Parameters implements Serializable { | ||
|
||
private static final long serialVersionUID = -3591319454008944749L; | ||
private String key; | ||
private String iv; | ||
|
||
public String getKey() { | ||
return key; | ||
} | ||
|
||
public void setKey(String key) { | ||
this.key = key; | ||
} | ||
|
||
public String getIv() { | ||
return iv; | ||
} | ||
|
||
public void setIv(String iv) { | ||
this.iv = iv; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Parameters [key=" + key + ", iv=" + iv + "]"; | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
src/main/java/io/twentysixty/sa/client/model/message/mrtd/EMrtdData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
package io.twentysixty.sa.client.model.message.mrtd; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||
import java.io.Serializable; | ||
import java.util.List; | ||
import java.util.Map; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
@JsonInclude(Include.NON_NULL) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@Getter | ||
@Setter | ||
@ToString | ||
public class EMrtdData implements Serializable { | ||
|
||
private static final long serialVersionUID = -5234275638176689315L; | ||
|
||
private Map<String, Object> raw; | ||
private EMrtdProcessedData processed; | ||
|
||
@Getter | ||
@Setter | ||
@ToString | ||
@JsonInclude(Include.NON_NULL) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public static class EMrtdProcessedData { | ||
private String documentType; | ||
private String documentNumber; | ||
private String issuingState; | ||
private String dateOfBirth; | ||
private String dateOfExpiry; | ||
private String sex; | ||
private String nationality; | ||
private String lastName; | ||
private String firstName; | ||
private String mrzOptionalData; | ||
private List<String> faceImages; | ||
private String nameOfHolder; | ||
private List<String> otherNames; | ||
private String personalNumber; | ||
private List<String> placeOfBirth; | ||
private List<String> permanentAddress; | ||
private String telephone; | ||
private String profession; | ||
private String title; | ||
private String personalSummary; | ||
private String custodyInformation; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/io/twentysixty/sa/client/model/message/mrtd/EMrtdDataRequestMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package io.twentysixty.sa.client.model.message.mrtd; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||
import io.twentysixty.sa.client.model.message.BaseMessage; | ||
import java.util.UUID; | ||
|
||
@JsonInclude(Include.NON_NULL) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class EMrtdDataRequestMessage extends BaseMessage { | ||
|
||
private static final long serialVersionUID = -2840211856886673672L; | ||
|
||
public static EMrtdDataRequestMessage build(UUID connectionId, UUID threadId) { | ||
EMrtdDataRequestMessage emrtd = new EMrtdDataRequestMessage(); | ||
emrtd.setConnectionId(connectionId); | ||
emrtd.setThreadId(threadId); | ||
return emrtd; | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/io/twentysixty/sa/client/model/message/mrtd/EMrtdDataSubmitMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package io.twentysixty.sa.client.model.message.mrtd; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonInclude.Include; | ||
import io.twentysixty.sa.client.model.message.BaseMessage; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
import lombok.ToString; | ||
|
||
@JsonInclude(Include.NON_NULL) | ||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
@Getter | ||
@Setter | ||
@ToString | ||
public class EMrtdDataSubmitMessage extends BaseMessage { | ||
|
||
private static final long serialVersionUID = -2840411856886673672L; | ||
|
||
private EMrtdData dataGroups; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters