public class Unsealer extends Object
Constructor and Description |
---|
Unsealer(PrivateKey decryptionPrivateKey,
X509Certificate decryptionCertificate) |
Modifier and Type | Method and Description |
---|---|
X509Certificate |
getSenderCertificate()
Gives back the eHealth authentication certificate of the sender of the
sealed data.
|
byte[] |
unseal(byte[] data)
Unseals the given sealed data blob.
|
public Unsealer(PrivateKey decryptionPrivateKey, X509Certificate decryptionCertificate)
decryptionPrivateKey
- the eHealth encryption private key.decryptionCertificate
- used for automatic recipient selectionpublic byte[] unseal(byte[] data) throws CertificateException, org.bouncycastle.operator.OperatorCreationException, org.bouncycastle.cms.CMSException, IOException
data
- CertificateException
org.bouncycastle.operator.OperatorCreationException
org.bouncycastle.cms.CMSException
IOException
public X509Certificate getSenderCertificate()
Copyright © 2012-2014 e-Contract.be. All Rights Reserved.