Class VDSNCData
- java.lang.Object
-
- com.regula.documentreader.api.results.VDSNCData
-
public class VDSNCData extends java.lang.Object
Visible Digital Seal for Non Constrained environments.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VDSNCData
fromJson(java.lang.String json)
static VDSNCData
fromJson(JSONObject object)
BytesData
getCertificate()
java.util.List<CertificateChain>
getCertificateChain()
java.lang.String
getIssuingCountry()
JSONObject
getMessage()
long[]
getNotifications()
The list of remarks occured during the scanning procedure.BytesData
getSignature()
java.lang.String
getSignatureAlg()
java.lang.String
getType()
Visible Digital Seal use case type.int
getVersion()
java.lang.String
toJson()
Method convert object to string in json format
-
-
-
Method Detail
-
getType
public java.lang.String getType()
Visible Digital Seal use case type. Type is set to `icao.test` for Proof of Testing (data defined by CAPSCA), `icao.vacc` for Proof of Vaccination (data defined by WHO). Other Types may be added in the future.- Returns:
- visible digital seal
-
getVersion
public int getVersion()
- Returns:
- Visible Digital Seal use case version.
-
getIssuingCountry
public java.lang.String getIssuingCountry()
- Returns:
- Three letter code identifying the issuing state or organization.
-
getMessage
public JSONObject getMessage()
- Returns:
- The message field contains the actual data as a dictionary (JSON).
-
getSignatureAlg
public java.lang.String getSignatureAlg()
- Returns:
- The signature algorithm used to produce the signature. ECDSA scheme.
-
getSignature
public BytesData getSignature()
- Returns:
- The binary data of the verified digital signature.
-
getCertificate
public BytesData getCertificate()
- Returns:
- The binary data of the signer certificate.
-
getNotifications
public long[] getNotifications()
The list of remarks occured during the scanning procedure.- Returns:
- Each element is a `long` that belongs to the `enum
eLDS_ParsingErrorCodes
` or the `enumeLDS_ParsingNotificationCodes
`.
-
getCertificateChain
public java.util.List<CertificateChain> getCertificateChain()
- Returns:
- The certificate chain, used for the digital signature verification.
-
fromJson
public static VDSNCData fromJson(java.lang.String json)
-
fromJson
public static VDSNCData fromJson(JSONObject object)
-
toJson
public java.lang.String toJson()
Method convert object to string in json format- Returns:
- string in json format
-
-