|
19 | 19 |
|
20 | 20 | package org.openjavacard.gp.scp;
|
21 | 21 |
|
22 |
| -import org.openjavacard.gp.client.GPCard; |
23 | 22 | import org.openjavacard.gp.client.GPContext;
|
24 | 23 | import org.openjavacard.gp.crypto.GPBouncy;
|
25 | 24 | import org.openjavacard.gp.crypto.GPCrypto;
|
@@ -59,8 +58,6 @@ public class GPSecureChannel extends CardChannel {
|
59 | 58 | private final SecureRandom mRandom;
|
60 | 59 | /** Context for checks */
|
61 | 60 | private final GPContext mContext;
|
62 |
| - /** Reference to the card for communication */ |
63 |
| - private final GPCard mCard; |
64 | 61 | /** Underlying channel wrapper for communication */
|
65 | 62 | private final GPBasicWrapper mBasicWrapper;
|
66 | 63 | /** Underlying card channel */
|
@@ -92,18 +89,17 @@ public class GPSecureChannel extends CardChannel {
|
92 | 89 | * <p/>
|
93 | 90 | * Objects are not intended to be reconfigured.
|
94 | 91 | * <p/>
|
95 |
| - * @param card this channel is for |
| 92 | + * @param context for this secure channel |
96 | 93 | * @param basicWrapper to communicate through
|
97 | 94 | * @param keys to use
|
98 | 95 | * @param protocolPolicy to conform to
|
99 | 96 | * @param securityPolicy to conform to
|
100 | 97 | */
|
101 |
| - public GPSecureChannel(GPCard card, GPBasicWrapper basicWrapper, |
| 98 | + public GPSecureChannel(GPContext context, GPBasicWrapper basicWrapper, |
102 | 99 | GPKeySet keys, GPKeyDiversification diversification,
|
103 | 100 | SCPProtocolPolicy protocolPolicy, SCPSecurityPolicy securityPolicy) {
|
104 | 101 | mRandom = new SecureRandom();
|
105 |
| - mContext = card.getContext(); |
106 |
| - mCard = card; |
| 102 | + mContext = context; |
107 | 103 | mBasicWrapper = basicWrapper;
|
108 | 104 | mChannel = mBasicWrapper.getChannel();
|
109 | 105 | mStaticKeys = keys;
|
|
0 commit comments