| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceApi.Crypto.BioDataFormat
Two biodata formats.
|
static class |
DeviceApi.Crypto.CryptoId
A Crypto ID identifies a device specific set of keys.
|
static class |
DeviceApi.Crypto.RealTimeDecryption
The realtime decryption decrypts the biodata while it is received
from the device.
|
static interface |
DeviceApi.Crypto.SetFinalDocHashCallback
The continuation to call when setting the final document hash
succeeded.
|
static class |
DeviceApi.Crypto.SetFinalDocHashResult
The result of an operation that sets the final document hash.
|
static class |
DeviceApi.Crypto.SignKey
Can set the sign key.
|
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decryptAesKey(byte[] encryptedAesKey,
byte[] preliminaryDocumentHash,
Path pem)
Decrypts the encrypted AES key by means of the preliminary document
hash and a private RSA key.
|
static Optional<String> |
decryptBioText(String bioText,
byte[] aesKey)
Decrypts the encrypted AES key by means of the preliminary document
hash and a private RSA key.
|
static Optional<String> |
getBioData()
Gets the textual biodata.
|
static Optional<String> |
getBioData(DeviceApi.Crypto.BioDataFormat bioDataFormat)
Gets the biodata in different formats.
|
static Optional<String> |
getCryptoIdInfo()
Gets textual information on the available crypto IDs.
|
static List<DeviceApi.Crypto.CryptoId> |
getCryptoIds()
Gets the available crypto IDs for the selected device.
|
static byte[] |
getEncryptedAesKey()
Gets the encrypted AES key.
|
static Optional<String> |
getNotaryInfo()
Gets the notary information.
|
static byte[] |
getNotaryKey()
Gets the public notary key.
|
static List<byte[]> |
getNotaryKeys()
Deprecated.
A required dependency is not yet released.
|
static Optional<Instant> |
getRtcTime()
Gets the time from the RTC of the signature device.
|
static Optional<X509Certificate> |
getSignatureCertificate()
Gets the certificate of the signer.
|
static Optional<X509Certificate> |
getSignatureCertificate(boolean swSign)
Gets the certificate of the signer.
|
static byte[] |
getSignatureCertificateRaw(boolean swSign)
Gets the certificate of the signer
|
static byte[] |
getSignedDocumentHash()
Gets the signed document hash that is an RSA signature.
|
static boolean |
setCryptoId(DeviceApi.Crypto.CryptoId cryptoId)
Sets the cryptoId to use for subsequent signatures.
|
static boolean |
setFinalDocumentHash32(byte[] octets)
Sets the final document hash.
|
static boolean |
setFinalDocumentHash32(byte[] octets,
boolean swSign)
Sets the final document hash.
|
static boolean |
setFinalDocumentHash32Async(byte[] octets,
boolean swSign,
DeviceApi.Crypto.SetFinalDocHashCallback callback)
Deprecated.
A required dependency is not yet released.
|
static Optional<DeviceApi.Crypto.SetFinalDocHashResult> |
setFinalDocumentHash32Blocking(byte[] octets,
boolean swSign)
Deprecated.
A required dependency is not yet released.
|
static boolean |
setPreliminaryDocumentHash32(byte[] octets)
Sets the premilinary document hash.
|
public static byte[] decryptAesKey(byte[] encryptedAesKey,
byte[] preliminaryDocumentHash,
Path pem)
encryptedAesKey - The encrypted AES key.preliminaryDocumentHash - The preliminary document hash.pem - The pem file having the private RSA key.public static Optional<String> decryptBioText(String bioText, byte[] aesKey)
bioText - The textual biometric data.aesKey - The AES Key.public static boolean setPreliminaryDocumentHash32(byte[] octets)
octets - The hash. 32 octets.public static byte[] getSignedDocumentHash()
public static byte[] getEncryptedAesKey()
public static boolean setFinalDocumentHash32(byte[] octets)
octets - The hash. 32 octets.public static boolean setFinalDocumentHash32(byte[] octets,
boolean swSign)
DeviceApi.Button.setCallback(com.so.net.DeviceApi.Button.Callback).octets - The hash. 32 octets.swSign - Pass false to let the signature device sign the final
document hash.public static Optional<DeviceApi.Crypto.SetFinalDocHashResult> setFinalDocumentHash32Blocking(byte[] octets, boolean swSign)
setFinalDocumentHash32Async(byte[], boolean, com.so.net.DeviceApi.Crypto.SetFinalDocHashCallback).octets - The hash.swSign - Pass false to let the signature device sign the final
document hash.public static boolean setFinalDocumentHash32Async(byte[] octets,
boolean swSign,
DeviceApi.Crypto.SetFinalDocHashCallback callback)
octets - The hash.swSign - Pass false to let the signature device sign the final
document hash.callback - The callback to call when setting the final document
hash succeeded.public static Optional<X509Certificate> getSignatureCertificate()
public static Optional<X509Certificate> getSignatureCertificate(boolean swSign)
swSign - Pass false if the signature device signs the final
document hash. See setFinalDocumentHash32(byte[], boolean).public static byte[] getSignatureCertificateRaw(boolean swSign)
swSign - Pass false if the signature device signs the final
document hash. See setFinalDocumentHash32(byte[], boolean).public static Optional<String> getBioData()
public static Optional<String> getBioData(DeviceApi.Crypto.BioDataFormat bioDataFormat)
bioDataFormat - The biodata format.public static Optional<String> getNotaryInfo()
public static byte[] getNotaryKey()
public static Optional<Instant> getRtcTime()
public static Optional<String> getCryptoIdInfo()
public static List<DeviceApi.Crypto.CryptoId> getCryptoIds()
public static boolean setCryptoId(DeviceApi.Crypto.CryptoId cryptoId)
cryptoId - The crypto ID.getCryptoIds()public static List<byte[]> getNotaryKeys()
getCryptoIds().Copyright © 2025. All rights reserved.