public class Bioseal
extends java.lang.Object
implements java.lang.AutoCloseable, java.io.Serializable
| Constructor and Description |
|---|
Bioseal()
Creates a new instance of the Bioseal class.
|
Bioseal(long handle)
Creates a new instance of the Bioseal class.
|
| Modifier and Type | Method and Description |
|---|---|
protected static int |
_decryptionCallbackStatic(long context,
long args) |
protected static int |
_externalResourceCallbackStatic(long context,
long args) |
void |
buildHtmlView(java.lang.String language,
boolean userAuthenticated)
Builds the presentation view, in HTML format.
|
java.lang.String |
buildVdsAsJson(java.lang.String indentation)
Builds a representation of the VDS, in JSON format.
|
java.lang.String |
buildVdsAsXml(java.lang.String language)
Builds a representation of the VDS, in a XML format.
|
void |
clear()
Clears all internal data.
|
void |
clearDownloadCache()
Clears the internal download cache.
|
void |
close()
Releases all resources used by this Bioseal.
|
static java.lang.String |
computeSha256(byte[] data)
Computes SHA256.
|
protected void |
finalize()
Finalizer for this class.
|
FieldList |
findBiometrics(BiometricDataType biometricDataType,
java.lang.String biometricFormat)
Finds the biometric field in payload.
|
FieldList |
findFieldsByExtension(FieldExtensionType fieldExtensionType)
Finds fields by extension type.
|
FieldList |
findFieldsByExtensionName(java.lang.String extensionName)
Finds fields by extension name.
|
Field |
getAuxData()
Gets the the auxiliary data containing additional information specific to the BioSeal.
|
BiometricVerificationRules |
getBiometricVerificationRules()
Gets the the list of biometric verification rules.
|
java.lang.String |
getCertificateAuthorityReference()
Gets the the issuing reference of the certificate authority.
|
java.lang.String |
getCertificateIdentifier()
Gets the the identifier of the certificate.
|
CertificateInformation |
getCertificateInformation()
Gets the the detailed certificate information.
|
boolean |
getContainsAuxData()
Gets the indicates whether the BioSeal contains auxiliary data.
|
boolean |
getContainsBiometrics()
Gets the indicates whether the BioSeal contains biometric data.
|
boolean |
getContainsExtensions()
Gets the indicates whether the BioSeal contains extensions.
|
boolean |
getContainsFaceTemplates()
Gets the indicates whether the BioSeal contains face templates.
|
boolean |
getContainsFingerTemplates()
Gets the indicates whether the BioSeal contains finger templates.
|
boolean |
getContainsImages()
Gets the indicates whether the BioSeal contains images.
|
boolean |
getContainsPortraits()
Gets the indicates whether the BioSeal contains portraits.
|
byte[] |
getData()
Gets the the data of the VDS as a binary array.
|
java.lang.String |
getDocumentDescription(java.lang.String language)
Gets the description of the document.
|
java.lang.String |
getDocumentIssuingCountry()
Gets the the identifier of the country issuing the document.
|
DateTime |
getDocumentIssuingDate()
Gets the the document issuing date.
|
java.lang.String |
getDocumentName(java.lang.String language)
Gets the name of the document.
|
java.lang.String |
getDocumentScope()
Gets the the identification code of the scope on which the document type is defined.
|
java.lang.String |
getDocumentType()
Gets the the document type identification code.
|
DateTime |
getExpirationDate()
Gets the the BioSeal expiration date.
|
BiosealFormat |
getExtendedFormat()
Gets the the BioSeal format with prefix information.
|
BiosealFormat |
getFormat()
Gets the the BioSeal format without prefix information.
|
long |
getHandle()
Gets the native handle.
|
boolean |
getHasPrefix()
Gets the prefix is present.
|
int |
getHeaderVersion()
Gets the the header version.
|
java.lang.String |
getHtmlView()
Gets the the presentation view, in HTML format, created from the manifest and the data contained in the BioSeal.
|
java.lang.String |
getIssuingAgencyCode()
Gets the the Issuing Agency Code (IAC).
|
Log |
getLog()
Gets the the log.
|
java.lang.String |
getLotlUrl()
Gets the the URL to the LoTL (List of Trust List).
|
Manifest |
getManifest()
Gets the the manifest information.
|
int |
getManifestId()
Gets the the manifest ID in ISO 22385 format.
|
java.lang.String |
getManifestUrl()
Gets the the URL to the manifest.
|
Field |
getPayload()
Gets the the payload containing the data specific to the BioSeal.
|
java.lang.String |
getPrefix()
Gets the the prefix.
|
DateTime |
getSignatureDate()
Gets the the BioSeal signature date.
|
StringArray |
getSupportedLanguages()
Gets the the list of supported languages declared in the manifest.
|
java.lang.String |
getTslUrl()
Gets the the URL to the TSL (Trust Service List).
|
UserAuthentication |
getUserAuthentication()
Gets the the user authentication parameters.
|
VerificationResult |
getVerificationResult()
Gets the the last verification result.
|
boolean |
getVerifiesCrlUpdates()
Gets the indicates whether the verification process should verify the next CRL update.
|
boolean |
getVerifiesGovernance()
Gets the indicates whether the governance certification chain is verified.
|
boolean |
getVerifiesSignature()
Gets the indicates whether the VDS signature is verified.
|
void |
setDecryptionCallback(DecryptionCallbackHandler decryptionCallback)
Sets the the callback used to decrypt a field.
|
void |
setExternalResourceCallback(ResourceCallbackHandler externalResourceCallback)
Sets the the callback used to retrieve an external resource (LoTL, TSL, certificate, manifest, CRL) with specified URI.
|
void |
setLotlUrl(java.lang.String lotlUrl)
Sets the the URL to the LoTL (List of Trust List).
|
void |
setManifestUrl(java.lang.String manifestUrl)
Sets the the URL to the manifest.
|
void |
setTimeZoneOffset(int offsetInSeconds)
Sets the time zone offset in seconds.
|
void |
setTslUrl(java.lang.String tslUrl)
Sets the the URL to the TSL (Trust Service List).
|
void |
setVerifiesCrlUpdates(boolean verifiesCrlUpdates)
Sets the indicates whether the verification process should verify the next CRL update.
|
void |
setVerifiesGovernance(boolean verifiesGovernance)
Sets the indicates whether the governance certification chain is verified.
|
void |
setVerifiesSignature(boolean verifiesSignature)
Sets the indicates whether the VDS signature is verified.
|
VerificationResult |
verifyFromBuffer(byte[] data)
Decodes and verifies the specified data buffer.
|
VerificationResult |
verifyFromString(java.lang.String data)
Decodes and verifies the specified string buffer.
|
public Bioseal()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public Bioseal(long handle)
throws BiosealException
handle - Handle to the Bioseal.BiosealException - An error has occurred during Bioseal Library execution.public void close()
close in interface java.lang.AutoCloseableprotected void finalize()
finalize in class java.lang.Objectpublic long getHandle()
protected static int _externalResourceCallbackStatic(long context,
long args)
protected static int _decryptionCallbackStatic(long context,
long args)
public BiosealFormat getFormat() throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public BiosealFormat getExtendedFormat() throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public DateTime getDocumentIssuingDate() throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public DateTime getSignatureDate() throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String getDocumentType()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String getDocumentScope()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String getDocumentIssuingCountry()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public int getManifestId()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public Field getPayload() throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public Manifest getManifest() throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public boolean getContainsImages()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public boolean getContainsPortraits()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public boolean getContainsBiometrics()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public boolean getContainsFaceTemplates()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public boolean getContainsFingerTemplates()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public boolean getContainsExtensions()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public StringArray getSupportedLanguages() throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String getHtmlView()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public void setExternalResourceCallback(ResourceCallbackHandler externalResourceCallback) throws BiosealException
externalResourceCallback - The callback used to retrieve an external resource (LoTL, TSL, certificate, manifest, CRL) with specified URI.BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String getCertificateAuthorityReference()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String getCertificateIdentifier()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public CertificateInformation getCertificateInformation() throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public DateTime getExpirationDate() throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public boolean getContainsAuxData()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public Field getAuxData() throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public BiometricVerificationRules getBiometricVerificationRules() throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public Log getLog() throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public UserAuthentication getUserAuthentication() throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public int getHeaderVersion()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public void setDecryptionCallback(DecryptionCallbackHandler decryptionCallback) throws BiosealException
decryptionCallback - The callback used to decrypt a field.BiosealException - An error has occurred during Bioseal Library execution.public boolean getVerifiesGovernance()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public void setVerifiesGovernance(boolean verifiesGovernance)
throws BiosealException
verifiesGovernance - Indicates whether the governance certification chain is verified.BiosealException - An error has occurred during Bioseal Library execution.public boolean getVerifiesSignature()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public void setVerifiesSignature(boolean verifiesSignature)
throws BiosealException
verifiesSignature - Indicates whether the VDS signature is verified.BiosealException - An error has occurred during Bioseal Library execution.public boolean getVerifiesCrlUpdates()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public void setVerifiesCrlUpdates(boolean verifiesCrlUpdates)
throws BiosealException
verifiesCrlUpdates - Indicates whether the verification process should verify the next CRL update.BiosealException - An error has occurred during Bioseal Library execution.public VerificationResult getVerificationResult() throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String getLotlUrl()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public void setLotlUrl(java.lang.String lotlUrl)
throws BiosealException
lotlUrl - The URL to the LoTL (List of Trust List).BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String getTslUrl()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public void setTslUrl(java.lang.String tslUrl)
throws BiosealException
tslUrl - The URL to the TSL (Trust Service List).BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String getManifestUrl()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public void setManifestUrl(java.lang.String manifestUrl)
throws BiosealException
manifestUrl - The URL to the manifest.BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String getIssuingAgencyCode()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public boolean getHasPrefix()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String getPrefix()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public byte[] getData()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public void clear()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public VerificationResult verifyFromBuffer(byte[] data) throws BiosealException
data - The data buffer containing the BioSeal code.BiosealException - An error has occurred during Bioseal Library execution.public VerificationResult verifyFromString(java.lang.String data) throws BiosealException
data - The string buffer containing the BioSeal code.BiosealException - An error has occurred during Bioseal Library execution.public void buildHtmlView(java.lang.String language,
boolean userAuthenticated)
throws BiosealException
language - The expected language.userAuthenticated - A value indicating whether the user is authenticated.BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String getDocumentName(java.lang.String language)
throws BiosealException
language - The expected language.BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String getDocumentDescription(java.lang.String language)
throws BiosealException
language - The expected language.BiosealException - An error has occurred during Bioseal Library execution.public FieldList findFieldsByExtension(FieldExtensionType fieldExtensionType) throws BiosealException
fieldExtensionType - The field extension type.BiosealException - An error has occurred during Bioseal Library execution.public FieldList findFieldsByExtensionName(java.lang.String extensionName) throws BiosealException
extensionName - A string that identifies the extension name.BiosealException - An error has occurred during Bioseal Library execution.public FieldList findBiometrics(BiometricDataType biometricDataType, java.lang.String biometricFormat) throws BiosealException
biometricDataType - The type of biometric data.biometricFormat - The format of the biometric data.BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String buildVdsAsJson(java.lang.String indentation)
throws BiosealException
indentation - The indentation of the json string.BiosealException - An error has occurred during Bioseal Library execution.public java.lang.String buildVdsAsXml(java.lang.String language)
throws BiosealException
language - The expected language.BiosealException - An error has occurred during Bioseal Library execution.public void clearDownloadCache()
throws BiosealException
BiosealException - An error has occurred during Bioseal Library execution.public void setTimeZoneOffset(int offsetInSeconds)
throws BiosealException
offsetInSeconds - The time zone offset in seconds.BiosealException - An error has occurred during Bioseal Library execution.public static java.lang.String computeSha256(byte[] data)
throws BiosealException
data - Input data.BiosealException - An error has occurred during Bioseal Library execution.Copyright © 2020-2030, id3 Technologies. All rights reserved. eu.id3.bioseal