public class SEIDSDOHandler extends Object
Constructor and Description |
---|
SEIDSDOHandler(MerchantContext context) |
Modifier and Type | Method and Description |
---|---|
no.bbs.bankid.seid.sdo.components.SEID_SDO |
addSDOSignature(no.bbs.bankid.seid.sdo.components.SEID_SDO sdoList,
PKCS7WithOCSPResponse[] pkcs7AndOCSPEntries,
byte[] signedData) |
no.bbs.bankid.seid.sdo.components.SEID_SDO |
createDynamicSEIDSDO(PKCS7WithOCSPResponse[] pkcs7AndOCSPEntries,
byte[] signedData,
String signedDocumentMimeType,
String merchantDescription) |
no.bbs.bankid.seid.sdo.components.SEID_SDO |
createSDOSeal(no.bbs.bankid.seid.sdo.components.SEID_SDO sdo,
byte[] b64OCSPResponse,
X509Certificate[] merchantSignerCertChain,
X509Certificate merchantSignerCert,
PrivateKey merchantSignerKey,
List<String> certificateAccessList,
X509Certificate bankidRootCertificate,
int slot,
byte[] privateKeyLabel) |
no.bbs.bankid.seid.sdo.components.SEID_SDO |
createSEIDSDO(byte[] b64ClientPKCS7,
byte[] b64MerchantPKCS7,
byte[] signedData,
String signedDocumentMimeType,
byte[] b64MerchantsOCSP,
byte[] b64ClientOCSP,
String merchantDescription,
X509Certificate[] merchantSignerCertChain,
X509Certificate merchantSignerCert,
PrivateKey merchantSignerKey,
List<String> certificateAccessList,
X509Certificate bankidRootCertificate,
int slot,
byte[] privateKeyLabel,
X509Certificate[] bankidRootCertificates)
Method to create a SEID_SDO instance.
|
public SEIDSDOHandler(MerchantContext context)
public no.bbs.bankid.seid.sdo.components.SEID_SDO createSDOSeal(no.bbs.bankid.seid.sdo.components.SEID_SDO sdo, byte[] b64OCSPResponse, X509Certificate[] merchantSignerCertChain, X509Certificate merchantSignerCert, PrivateKey merchantSignerKey, List<String> certificateAccessList, X509Certificate bankidRootCertificate, int slot, byte[] privateKeyLabel) throws BIDException
sdo
- SEID_SDO to seal. If a Seal already exists then this seal is overwritten.b64OCSPResponse
- byte[] The OCSPResponse if the BankID Certificate signing the SDODataPartmerchantSignerCertChain
- CertificateChain Of the merchant sealing the SDOmerchantSignerCert
- JCRYPTO_X509Certificate The merchant signer certificatemerchantSignerKey
- PrivateKey The merchants private key used to seal the sdocertificateAccessList
- List List of supported certificate policiesbankidRootCertificate
- JCRYPTO_X509Certificate The BankID Root Certificateslot
- int The slotid if merchant is using a HSMprivateKeyLabel
- String The privateKeyLabel in the HSM if merchant is using HSMBIDException
- If sealing failspublic no.bbs.bankid.seid.sdo.components.SEID_SDO addSDOSignature(no.bbs.bankid.seid.sdo.components.SEID_SDO sdoList, PKCS7WithOCSPResponse[] pkcs7AndOCSPEntries, byte[] signedData) throws BIDException
sdoList
- pkcs7AndOCSPEntries
- signedData
- BIDException
public no.bbs.bankid.seid.sdo.components.SEID_SDO createDynamicSEIDSDO(PKCS7WithOCSPResponse[] pkcs7AndOCSPEntries, byte[] signedData, String signedDocumentMimeType, String merchantDescription) throws BIDException
BIDException
public no.bbs.bankid.seid.sdo.components.SEID_SDO createSEIDSDO(byte[] b64ClientPKCS7, byte[] b64MerchantPKCS7, byte[] signedData, String signedDocumentMimeType, byte[] b64MerchantsOCSP, byte[] b64ClientOCSP, String merchantDescription, X509Certificate[] merchantSignerCertChain, X509Certificate merchantSignerCert, PrivateKey merchantSignerKey, List<String> certificateAccessList, X509Certificate bankidRootCertificate, int slot, byte[] privateKeyLabel, X509Certificate[] bankidRootCertificates) throws BIDException
b64ClientPKCS7
- byte[] The signature (PKCS#7)signedData
- byte[] The data signed by the clientsignedDocumentMimeType
- int The datatype, pdf or text int representationb64MerchantsOCSP
- byte[] The merchant ocsp as returned from the BankID Clientb64ClientOCSP
- byte[] If calling application has called the getCertificateStatus method before
calling createSDO then the client OCSP from the CertificateStatus object
may be passed to this method.merchantSignerCertChain
- BIDByteArray Containing the merchant signer certificate chainmerchantSignerCert
- JCRYPTO_X509Certificate The merchant certificate with the signing keyusagemerchantSignerKey
- PrivateKey the belongs to the merchant signer certificatecertificateAccessList
- HashMap Of certificate policy OIDS granted accessBIDException
- If something failsCopyright © 2017 Nets Branch Norway. All Rights Reserved.