rename CommandAPDUFactory -> OpenPgpCommandApduFactory
This commit is contained in:
@@ -11,7 +11,7 @@ import org.bouncycastle.util.Arrays;
|
|||||||
import org.bouncycastle.util.encoders.Hex;
|
import org.bouncycastle.util.encoders.Hex;
|
||||||
|
|
||||||
|
|
||||||
class CommandAPDUFactory {
|
class OpenPgpCommandApduFactory {
|
||||||
private static final int MAX_APDU_NC = 255;
|
private static final int MAX_APDU_NC = 255;
|
||||||
private static final int MAX_APDU_NC_EXT = 65535;
|
private static final int MAX_APDU_NC_EXT = 65535;
|
||||||
|
|
||||||
@@ -274,7 +274,7 @@ class SCP11bSecureMessaging implements SecureMessaging {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public static void establish(final SecurityTokenConnection t, final Context ctx, CommandAPDUFactory commandFactory)
|
public static void establish(final SecurityTokenConnection t, final Context ctx, OpenPgpCommandApduFactory commandFactory)
|
||||||
throws SecureMessagingException, IOException {
|
throws SecureMessagingException, IOException {
|
||||||
|
|
||||||
CommandAPDU cmd;
|
CommandAPDU cmd;
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ public class SecurityTokenConnection {
|
|||||||
private final Transport mTransport;
|
private final Transport mTransport;
|
||||||
@NonNull
|
@NonNull
|
||||||
private final Passphrase mPin;
|
private final Passphrase mPin;
|
||||||
private final CommandAPDUFactory commandFactory;
|
private final OpenPgpCommandApduFactory commandFactory;
|
||||||
|
|
||||||
private CardCapabilities mCardCapabilities;
|
private CardCapabilities mCardCapabilities;
|
||||||
private OpenPgpCapabilities mOpenPgpCapabilities;
|
private OpenPgpCapabilities mOpenPgpCapabilities;
|
||||||
@@ -111,7 +111,7 @@ public class SecurityTokenConnection {
|
|||||||
this.mTransport = transport;
|
this.mTransport = transport;
|
||||||
this.mPin = pin;
|
this.mPin = pin;
|
||||||
|
|
||||||
commandFactory = new CommandAPDUFactory();
|
commandFactory = new OpenPgpCommandApduFactory();
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getHolderName(byte[] name) {
|
private String getHolderName(byte[] name) {
|
||||||
|
|||||||
Reference in New Issue
Block a user