Skip to content

Commit

Permalink
Remove unused imports
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisDyallo committed May 29, 2024
1 parent b5f14ba commit 84529a9
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,16 @@
package com.yubico.yubikit.android.app.ui.piv

import android.util.SparseArray

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData

import com.yubico.yubikit.android.app.ui.YubiKeyViewModel
import com.yubico.yubikit.core.YubiKeyDevice
import com.yubico.yubikit.core.application.BadResponseException
import com.yubico.yubikit.core.smartcard.ApduException
import com.yubico.yubikit.core.smartcard.SmartCardConnection
import com.yubico.yubikit.piv.ManagementKeyType
import com.yubico.yubikit.piv.PivSession
import com.yubico.yubikit.piv.Slot

import org.slf4j.LoggerFactory

import java.security.cert.X509Certificate

class PivViewModel : YubiKeyViewModel<PivSession>() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
package com.yubico.yubikit.testing.piv;

import com.yubico.yubikit.testing.framework.PivInstrumentedTests;
import com.yubico.yubikit.testing.piv.PivCertificateTests;
import com.yubico.yubikit.testing.piv.PivDeviceTests;

import org.junit.Test;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static void testManagementKeyType(PivSession piv) throws BadResponseExcep
Assert.assertEquals(ManagementKeyType.AES128, piv.getManagementKeyType());

try {
piv.authenticate(ManagementKeyType.TDES, DEFAULT_MANAGEMENT_KEY);
piv.authenticate(DEFAULT_MANAGEMENT_KEY);
Assert.fail("Authenticated with wrong key type");
} catch (IllegalArgumentException e) {
// ignored
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
package com.yubico.yubikit.testing.piv;

import com.yubico.yubikit.core.internal.codec.Base64;
import com.yubico.yubikit.core.smartcard.ApduException;
import com.yubico.yubikit.piv.KeyType;
import com.yubico.yubikit.piv.ManagementKeyType;
import com.yubico.yubikit.piv.PivSession;

import org.bouncycastle.asn1.ASN1Sequence;
import org.bouncycastle.asn1.x500.X500Name;
Expand Down Expand Up @@ -51,7 +48,6 @@
import java.security.cert.CertificateFactory;
import java.security.cert.X509Certificate;
import java.security.interfaces.ECKey;
import java.security.spec.AlgorithmParameterSpec;
import java.security.spec.ECGenParameterSpec;
import java.security.spec.InvalidKeySpecException;
import java.security.spec.PKCS8EncodedKeySpec;
Expand Down

0 comments on commit 84529a9

Please sign in to comment.