Loading api/current.txt +17 −17 Original line number Diff line number Diff line Loading @@ -27560,24 +27560,24 @@ package android.net { field public static final android.os.Parcelable.Creator<android.net.RouteInfo> CREATOR; } public class SSLCertificateSocketFactory extends javax.net.ssl.SSLSocketFactory { @Deprecated public class SSLCertificateSocketFactory extends javax.net.ssl.SSLSocketFactory { ctor @Deprecated public SSLCertificateSocketFactory(int); method public java.net.Socket createSocket(java.net.Socket, String, int, boolean) throws java.io.IOException; method public java.net.Socket createSocket(java.net.InetAddress, int, java.net.InetAddress, int) throws java.io.IOException; method public java.net.Socket createSocket(java.net.InetAddress, int) throws java.io.IOException; method public java.net.Socket createSocket(String, int, java.net.InetAddress, int) throws java.io.IOException; method public java.net.Socket createSocket(String, int) throws java.io.IOException; method public static javax.net.SocketFactory getDefault(int); method public static javax.net.ssl.SSLSocketFactory getDefault(int, android.net.SSLSessionCache); method public String[] getDefaultCipherSuites(); method public static javax.net.ssl.SSLSocketFactory getInsecure(int, android.net.SSLSessionCache); method public byte[] getNpnSelectedProtocol(java.net.Socket); method public String[] getSupportedCipherSuites(); method public void setHostname(java.net.Socket, String); method public void setKeyManagers(javax.net.ssl.KeyManager[]); method public void setNpnProtocols(byte[][]); method public void setTrustManagers(javax.net.ssl.TrustManager[]); method public void setUseSessionTickets(java.net.Socket, boolean); method @Deprecated public java.net.Socket createSocket(java.net.Socket, String, int, boolean) throws java.io.IOException; method @Deprecated public java.net.Socket createSocket(java.net.InetAddress, int, java.net.InetAddress, int) throws java.io.IOException; method @Deprecated public java.net.Socket createSocket(java.net.InetAddress, int) throws java.io.IOException; method @Deprecated public java.net.Socket createSocket(String, int, java.net.InetAddress, int) throws java.io.IOException; method @Deprecated public java.net.Socket createSocket(String, int) throws java.io.IOException; method @Deprecated public static javax.net.SocketFactory getDefault(int); method @Deprecated public static javax.net.ssl.SSLSocketFactory getDefault(int, android.net.SSLSessionCache); method @Deprecated public String[] getDefaultCipherSuites(); method @Deprecated public static javax.net.ssl.SSLSocketFactory getInsecure(int, android.net.SSLSessionCache); method @Deprecated public byte[] getNpnSelectedProtocol(java.net.Socket); method @Deprecated public String[] getSupportedCipherSuites(); method @Deprecated public void setHostname(java.net.Socket, String); method @Deprecated public void setKeyManagers(javax.net.ssl.KeyManager[]); method @Deprecated public void setNpnProtocols(byte[][]); method @Deprecated public void setTrustManagers(javax.net.ssl.TrustManager[]); method @Deprecated public void setUseSessionTickets(java.net.Socket, boolean); } public final class SSLSessionCache { api/removed.txt +1 −1 Original line number Diff line number Diff line Loading @@ -320,7 +320,7 @@ package android.net { @IntDef({0x0, 0xa, 0x14, 0x1e}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface NetworkBadging.Badging { } public class SSLCertificateSocketFactory extends javax.net.ssl.SSLSocketFactory { @Deprecated public class SSLCertificateSocketFactory extends javax.net.ssl.SSLSocketFactory { method @Deprecated public static org.apache.http.conn.ssl.SSLSocketFactory getHttpSocketFactory(int, android.net.SSLSessionCache); } Loading core/java/android/net/SSLCertificateSocketFactory.java +9 −0 Original line number Diff line number Diff line Loading @@ -86,7 +86,16 @@ import javax.net.ssl.X509TrustManager; * <p>On development devices, "setprop socket.relaxsslcheck yes" bypasses all * SSL certificate and hostname checks for testing purposes. This setting * requires root access. * * @deprecated This class has less error-prone replacements using standard APIs. To create an * {@code SSLSocket}, obtain an {@link SSLSocketFactory} from {@link SSLSocketFactory#getDefault()} * or {@link javax.net.ssl.SSLContext#getSocketFactory()}. To verify hostnames, pass * {@code "HTTPS"} to * {@link javax.net.ssl.SSLParameters#setEndpointIdentificationAlgorithm(String)}. To enable ALPN, * use {@link javax.net.ssl.SSLParameters#setApplicationProtocols(String[])}. To enable SNI, * use {@link javax.net.ssl.SSLParameters#setServerNames(java.util.List)}. */ @Deprecated public class SSLCertificateSocketFactory extends SSLSocketFactory { @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 115609023) private static final String TAG = "SSLCertificateSocketFactory"; Loading Loading
api/current.txt +17 −17 Original line number Diff line number Diff line Loading @@ -27560,24 +27560,24 @@ package android.net { field public static final android.os.Parcelable.Creator<android.net.RouteInfo> CREATOR; } public class SSLCertificateSocketFactory extends javax.net.ssl.SSLSocketFactory { @Deprecated public class SSLCertificateSocketFactory extends javax.net.ssl.SSLSocketFactory { ctor @Deprecated public SSLCertificateSocketFactory(int); method public java.net.Socket createSocket(java.net.Socket, String, int, boolean) throws java.io.IOException; method public java.net.Socket createSocket(java.net.InetAddress, int, java.net.InetAddress, int) throws java.io.IOException; method public java.net.Socket createSocket(java.net.InetAddress, int) throws java.io.IOException; method public java.net.Socket createSocket(String, int, java.net.InetAddress, int) throws java.io.IOException; method public java.net.Socket createSocket(String, int) throws java.io.IOException; method public static javax.net.SocketFactory getDefault(int); method public static javax.net.ssl.SSLSocketFactory getDefault(int, android.net.SSLSessionCache); method public String[] getDefaultCipherSuites(); method public static javax.net.ssl.SSLSocketFactory getInsecure(int, android.net.SSLSessionCache); method public byte[] getNpnSelectedProtocol(java.net.Socket); method public String[] getSupportedCipherSuites(); method public void setHostname(java.net.Socket, String); method public void setKeyManagers(javax.net.ssl.KeyManager[]); method public void setNpnProtocols(byte[][]); method public void setTrustManagers(javax.net.ssl.TrustManager[]); method public void setUseSessionTickets(java.net.Socket, boolean); method @Deprecated public java.net.Socket createSocket(java.net.Socket, String, int, boolean) throws java.io.IOException; method @Deprecated public java.net.Socket createSocket(java.net.InetAddress, int, java.net.InetAddress, int) throws java.io.IOException; method @Deprecated public java.net.Socket createSocket(java.net.InetAddress, int) throws java.io.IOException; method @Deprecated public java.net.Socket createSocket(String, int, java.net.InetAddress, int) throws java.io.IOException; method @Deprecated public java.net.Socket createSocket(String, int) throws java.io.IOException; method @Deprecated public static javax.net.SocketFactory getDefault(int); method @Deprecated public static javax.net.ssl.SSLSocketFactory getDefault(int, android.net.SSLSessionCache); method @Deprecated public String[] getDefaultCipherSuites(); method @Deprecated public static javax.net.ssl.SSLSocketFactory getInsecure(int, android.net.SSLSessionCache); method @Deprecated public byte[] getNpnSelectedProtocol(java.net.Socket); method @Deprecated public String[] getSupportedCipherSuites(); method @Deprecated public void setHostname(java.net.Socket, String); method @Deprecated public void setKeyManagers(javax.net.ssl.KeyManager[]); method @Deprecated public void setNpnProtocols(byte[][]); method @Deprecated public void setTrustManagers(javax.net.ssl.TrustManager[]); method @Deprecated public void setUseSessionTickets(java.net.Socket, boolean); } public final class SSLSessionCache {
api/removed.txt +1 −1 Original line number Diff line number Diff line Loading @@ -320,7 +320,7 @@ package android.net { @IntDef({0x0, 0xa, 0x14, 0x1e}) @java.lang.annotation.Retention(java.lang.annotation.RetentionPolicy.SOURCE) public static @interface NetworkBadging.Badging { } public class SSLCertificateSocketFactory extends javax.net.ssl.SSLSocketFactory { @Deprecated public class SSLCertificateSocketFactory extends javax.net.ssl.SSLSocketFactory { method @Deprecated public static org.apache.http.conn.ssl.SSLSocketFactory getHttpSocketFactory(int, android.net.SSLSessionCache); } Loading
core/java/android/net/SSLCertificateSocketFactory.java +9 −0 Original line number Diff line number Diff line Loading @@ -86,7 +86,16 @@ import javax.net.ssl.X509TrustManager; * <p>On development devices, "setprop socket.relaxsslcheck yes" bypasses all * SSL certificate and hostname checks for testing purposes. This setting * requires root access. * * @deprecated This class has less error-prone replacements using standard APIs. To create an * {@code SSLSocket}, obtain an {@link SSLSocketFactory} from {@link SSLSocketFactory#getDefault()} * or {@link javax.net.ssl.SSLContext#getSocketFactory()}. To verify hostnames, pass * {@code "HTTPS"} to * {@link javax.net.ssl.SSLParameters#setEndpointIdentificationAlgorithm(String)}. To enable ALPN, * use {@link javax.net.ssl.SSLParameters#setApplicationProtocols(String[])}. To enable SNI, * use {@link javax.net.ssl.SSLParameters#setServerNames(java.util.List)}. */ @Deprecated public class SSLCertificateSocketFactory extends SSLSocketFactory { @UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P, trackingBug = 115609023) private static final String TAG = "SSLCertificateSocketFactory"; Loading