Class IdValidationResult
-
- All Implemented Interfaces:
@Deprecated() public class IdValidationResult
Stores result of ID validation scanning
-
-
Field Summary
Fields Modifier and Type Field Description public String
frontIdPath
public String
frontIdCroppedFacePath
public int
frontIdResult
public String
backIdPath
public int
backIdResult
public IncodeWelcome.OCRData
ocrData
public IdCategory
idCategory
public String
frontIdBase64
public String
backIdBase64
-
Constructor Summary
Constructors Constructor Description IdValidationResult(String frontIdPath, String frontIdCroppedFacePath, int frontIdResult, String backIdPath, int backIdResult, IncodeWelcome.OCRData ocrData, IdCategory idCategory, String frontIdBase64, String backIdBase64)
IdValidationResult()
-
Method Summary
Modifier and Type Method Description String
getFrontIdPath()
void
setFrontIdPath(String frontIdPath)
String
getFrontIdCroppedFacePath()
void
setFrontIdCroppedFacePath(String frontIdCroppedFacePath)
int
getFrontIdResult()
void
setFrontIdResult(int frontIdResult)
String
getBackIdPath()
void
setBackIdPath(String backIdPath)
int
getBackIdResult()
void
setBackIdResult(int backIdResult)
IncodeWelcome.OCRData
getOcrData()
void
setOcrData(IncodeWelcome.OCRData ocrData)
IdCategory
getIdCategory()
void
setIdCategory(IdCategory idCategory)
String
getFrontIdBase64()
void
setFrontIdBase64(String frontIdBase64)
String
getBackIdBase64()
void
setBackIdBase64(String backIdBase64)
String
toString()
-
-
Constructor Detail
-
IdValidationResult
IdValidationResult(String frontIdPath, String frontIdCroppedFacePath, int frontIdResult, String backIdPath, int backIdResult, IncodeWelcome.OCRData ocrData, IdCategory idCategory, String frontIdBase64, String backIdBase64)
-
IdValidationResult
IdValidationResult()
-
-
Method Detail
-
getFrontIdPath
String getFrontIdPath()
- Returns:
URI pointing to the front of the ID
-
setFrontIdPath
void setFrontIdPath(String frontIdPath)
-
getFrontIdCroppedFacePath
String getFrontIdCroppedFacePath()
- Returns:
URI pointing to the face cropped from the front of the ID
-
setFrontIdCroppedFacePath
void setFrontIdCroppedFacePath(String frontIdCroppedFacePath)
-
getFrontIdResult
int getFrontIdResult()
- Returns:
Front ID validation result -1 : Unknown error 0 : OK, front ID validated successfully 1 : ID is possibly fake or it can't be classified as a valid ID 2 : Error while extracting picture from the ID 3 : There is to much glare on the photo 4 : Sharpness of the photo is too low 5 : There is too much shadow on the photo 6 : Passport is possibly fake or it can't be classified as a valid passport 8 : ID picture is not readable enough to perform validation
-
setFrontIdResult
void setFrontIdResult(int frontIdResult)
-
getBackIdPath
String getBackIdPath()
- Returns:
URI pointing to the back of the ID
-
setBackIdPath
void setBackIdPath(String backIdPath)
-
getBackIdResult
int getBackIdResult()
- Returns:
Back ID validation result -1 : Unknown error 0 : OK, front ID validated successfully 1 : ID is possibly fake or it can't be classified as a valid ID 3 : There is to much glare on the photo 4 : Sharpness of the photo is too low 5 : There is too much shadow on the photo 8 : ID picture is not readable enough to perform validation
-
setBackIdResult
void setBackIdResult(int backIdResult)
-
getOcrData
IncodeWelcome.OCRData getOcrData()
- Returns:
OCR Results containing birthDate, name, address, gender, etc.
-
setOcrData
void setOcrData(IncodeWelcome.OCRData ocrData)
-
getIdCategory
IdCategory getIdCategory()
- Returns:
Category of the ID, meaning if it's first or second ID
-
setIdCategory
void setIdCategory(IdCategory idCategory)
-
getFrontIdBase64
String getFrontIdBase64()
- Returns:
base64 String for Front ID bitmap or Passport scan bitmap
-
setFrontIdBase64
void setFrontIdBase64(String frontIdBase64)
-
getBackIdBase64
String getBackIdBase64()
- Returns:
base64 String for Back ID bitmap
-
setBackIdBase64
void setBackIdBase64(String backIdBase64)
-
-
-
-