rename CommandAPDUFactory -> OpenPgpCommandApduFactory

This commit is contained in:
Vincent Breitmoser
2017-10-13 15:59:33 +02:00
parent b7723c1a4a
commit 9b292a4c70
3 changed files with 4 additions and 4 deletions

View File

@@ -11,7 +11,7 @@ import org.bouncycastle.util.Arrays;
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_EXT = 65535;

View File

@@ -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 {
CommandAPDU cmd;

View File

@@ -89,7 +89,7 @@ public class SecurityTokenConnection {
private final Transport mTransport;
@NonNull
private final Passphrase mPin;
private final CommandAPDUFactory commandFactory;
private final OpenPgpCommandApduFactory commandFactory;
private CardCapabilities mCardCapabilities;
private OpenPgpCapabilities mOpenPgpCapabilities;
@@ -111,7 +111,7 @@ public class SecurityTokenConnection {
this.mTransport = transport;
this.mPin = pin;
commandFactory = new CommandAPDUFactory();
commandFactory = new OpenPgpCommandApduFactory();
}
private String getHolderName(byte[] name) {