public class BeIDIntegrity extends Object
| Constructor and Description |
|---|
BeIDIntegrity()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Address |
getVerifiedAddress(byte[] addressFile,
byte[] identitySignatureFile,
byte[] addressSignatureFile,
X509Certificate rrnCertificate)
Gives back a parsed address file after integrity verification.
|
Identity |
getVerifiedIdentity(byte[] identityFile,
byte[] identitySignatureFile,
byte[] photo,
X509Certificate rrnCertificate)
Gives back a parsed identity file after integrity verification including
the eID photo.
|
Identity |
getVerifiedIdentity(byte[] identityFile,
byte[] identitySignatureFile,
X509Certificate rrnCertificate)
Gives back a parsed identity file after integrity verification.
|
X509Certificate |
loadCertificate(byte[] encodedCertificate)
Loads a DER-encoded X509 certificate from a byte array.
|
boolean |
verifyAuthnSignature(byte[] toBeSigned,
byte[] signatureValue,
X509Certificate authnCertificate)
Verifies an authentication signature.
|
boolean |
verifySignature(byte[] signatureData,
PublicKey publicKey,
byte[]... data)
Verifies a SHA256withRSA signature.
|
boolean |
verifySignature(String signatureAlgo,
byte[] signatureData,
PublicKey publicKey,
byte[]... data)
Verifies a signature.
|
public X509Certificate loadCertificate(byte[] encodedCertificate)
public Identity getVerifiedIdentity(byte[] identityFile, byte[] identitySignatureFile, X509Certificate rrnCertificate) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic Identity getVerifiedIdentity(byte[] identityFile, byte[] identitySignatureFile, byte[] photo, X509Certificate rrnCertificate) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic Address getVerifiedAddress(byte[] addressFile, byte[] identitySignatureFile, byte[] addressSignatureFile, X509Certificate rrnCertificate)
public boolean verifySignature(byte[] signatureData,
PublicKey publicKey,
byte[]... data)
throws InvalidKeyException,
NoSuchAlgorithmException,
SignatureException
public boolean verifySignature(String signatureAlgo, byte[] signatureData, PublicKey publicKey, byte[]... data) throws NoSuchAlgorithmException, InvalidKeyException, SignatureException
public boolean verifyAuthnSignature(byte[] toBeSigned,
byte[] signatureValue,
X509Certificate authnCertificate)
Copyright © 2012–2019 BOSA. All rights reserved.