From 1a46ae528a7894a405c9fb1cfba90a6386e826d4 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Tue, 31 May 2016 21:47:25 +0200 Subject: optimize imports --- .../src/de/duenndns/ssl/MemorizingActivity.java | 9 +++++---- .../src/de/duenndns/ssl/MemorizingTrustManager.java | 14 +++++++++----- 2 files changed, 14 insertions(+), 9 deletions(-) (limited to 'libs/MemorizingTrustManager/src') diff --git a/libs/MemorizingTrustManager/src/de/duenndns/ssl/MemorizingActivity.java b/libs/MemorizingTrustManager/src/de/duenndns/ssl/MemorizingActivity.java index 013ac29b5..567c2d817 100644 --- a/libs/MemorizingTrustManager/src/de/duenndns/ssl/MemorizingActivity.java +++ b/libs/MemorizingTrustManager/src/de/duenndns/ssl/MemorizingActivity.java @@ -24,16 +24,17 @@ package de.duenndns.ssl; -import java.util.logging.Level; -import java.util.logging.Logger; - import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; -import android.content.DialogInterface.*; +import android.content.DialogInterface.OnCancelListener; +import android.content.DialogInterface.OnClickListener; import android.content.Intent; import android.os.Bundle; +import java.util.logging.Level; +import java.util.logging.Logger; + public class MemorizingActivity extends Activity implements OnClickListener,OnCancelListener { diff --git a/libs/MemorizingTrustManager/src/de/duenndns/ssl/MemorizingTrustManager.java b/libs/MemorizingTrustManager/src/de/duenndns/ssl/MemorizingTrustManager.java index 9032ba25b..547328f1f 100644 --- a/libs/MemorizingTrustManager/src/de/duenndns/ssl/MemorizingTrustManager.java +++ b/libs/MemorizingTrustManager/src/de/duenndns/ssl/MemorizingTrustManager.java @@ -30,27 +30,31 @@ import android.app.Activity; import android.app.Application; import android.app.Notification; import android.app.NotificationManager; -import android.app.Service; import android.app.PendingIntent; +import android.app.Service; import android.content.Context; import android.content.Intent; import android.net.Uri; -import android.util.SparseArray; import android.os.Handler; +import android.util.SparseArray; import java.io.File; import java.io.IOException; -import java.security.cert.*; import java.security.KeyStore; import java.security.KeyStoreException; import java.security.MessageDigest; -import java.util.logging.Level; -import java.util.logging.Logger; +import java.security.cert.Certificate; +import java.security.cert.CertificateException; +import java.security.cert.CertificateExpiredException; +import java.security.cert.CertificateParsingException; +import java.security.cert.X509Certificate; import java.text.SimpleDateFormat; import java.util.Collection; import java.util.Enumeration; import java.util.List; import java.util.Locale; +import java.util.logging.Level; +import java.util.logging.Logger; import javax.net.ssl.HostnameVerifier; import javax.net.ssl.SSLSession; -- cgit v1.2.3