diff options
Diffstat (limited to 'src/com/android/providers/downloads/SystemFacade.java')
-rw-r--r-- | src/com/android/providers/downloads/SystemFacade.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/com/android/providers/downloads/SystemFacade.java b/src/com/android/providers/downloads/SystemFacade.java index 5f020b1a..c34317cb 100644 --- a/src/com/android/providers/downloads/SystemFacade.java +++ b/src/com/android/providers/downloads/SystemFacade.java @@ -16,11 +16,15 @@ package com.android.providers.downloads; +import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager.NameNotFoundException; import android.net.Network; import android.net.NetworkInfo; +import java.security.GeneralSecurityException; +import javax.net.ssl.SSLContext; + interface SystemFacade { /** * @see System#currentTimeMillis() @@ -58,4 +62,10 @@ interface SystemFacade { * Returns true if cleartext network traffic is permitted for the specified UID. */ public boolean isCleartextTrafficPermitted(int uid); + + /** + * Return a {@link SSLContext} configured using the specified package's configuration. + */ + public SSLContext getSSLContextForPackage(Context context, String pckg) + throws GeneralSecurityException; } |