public class InitSessionHandler extends Object
Constructor and Description |
---|
InitSessionHandler(MerchantContext context,
BIDFacade facade) |
Modifier and Type | Method and Description |
---|---|
static String |
getB64ServerInfo(MerchantContext context) |
Hashtable<String,String> |
getEncryptedRequest(String req,
byte[] baseKey,
KeyStore keyStore) |
String |
getInitSession(InitSessionInfo initSessionInfo,
org.bouncycastle.crypto.params.KeyParameter baseKeyParameter)
This is the InitSessionHandler's main method.
|
public InitSessionHandler(MerchantContext context, BIDFacade facade)
public String getInitSession(InitSessionInfo initSessionInfo, org.bouncycastle.crypto.params.KeyParameter baseKeyParameter) throws BIDException
initSessionInfo
- InitSessionInfo information needed to get the clientBIDException
- If something failspublic static String getB64ServerInfo(MerchantContext context) throws BIDException
BIDException
public Hashtable<String,String> getEncryptedRequest(String req, byte[] baseKey, KeyStore keyStore) throws org.bouncycastle.crypto.InvalidCipherTextException, InvalidKeyException, NoSuchAlgorithmException, BIDException
org.bouncycastle.crypto.InvalidCipherTextException
InvalidKeyException
NoSuchAlgorithmException
BIDException
Copyright © 2017 Nets Branch Norway. All Rights Reserved.