public class SignHandler extends Object
Constructor and Description |
---|
SignHandler(MerchantContext context) |
Modifier and Type | Method and Description |
---|---|
byte[] |
sign(PrivateKey priv,
byte[] tbsData,
int slot,
byte[] privateKeyLabel,
String hashAlg)
Signs the input tbsData with the input PrivateKey.
|
byte[] |
signAndCreateDetachedPKCS7(byte[] dataToBeSigned,
X509Certificate[] certificateChain,
X509Certificate signerCertificate,
PrivateKey privateKey,
int slotId,
byte[] privateKeyId,
boolean includeBSSChannelOID,
CMSFormat cmsFormat) |
byte[] |
signPKCS1(PrivateKey priv,
byte[] tbsData,
int slot,
byte[] privateKeyLabel,
String hashAlg) |
public SignHandler(MerchantContext context)
public byte[] signPKCS1(PrivateKey priv, byte[] tbsData, int slot, byte[] privateKeyLabel, String hashAlg) throws BIDException
BIDException
public byte[] sign(PrivateKey priv, byte[] tbsData, int slot, byte[] privateKeyLabel, String hashAlg) throws BIDException
priv
- PrivateKey used to signtbsData
- The data to signBIDException
- If signing failspublic byte[] signAndCreateDetachedPKCS7(byte[] dataToBeSigned, X509Certificate[] certificateChain, X509Certificate signerCertificate, PrivateKey privateKey, int slotId, byte[] privateKeyId, boolean includeBSSChannelOID, CMSFormat cmsFormat) throws BIDException
BIDException
Copyright © 2017 Nets Branch Norway. All Rights Reserved.