Merge "Add getter for X509 certificate" am: 38c9e614af am: 8547723200
am: b84bf6bc3d
Change-Id: I7f839b834611e61f7791ea163d988888c70371bb
This commit is contained in:
@@ -27632,6 +27632,7 @@ package android.net.http {
|
||||
method public java.util.Date getValidNotAfterDate();
|
||||
method public deprecated java.lang.String getValidNotBefore();
|
||||
method public java.util.Date getValidNotBeforeDate();
|
||||
method public java.security.cert.X509Certificate getX509Certificate();
|
||||
method public static android.net.http.SslCertificate restoreState(android.os.Bundle);
|
||||
method public static android.os.Bundle saveState(android.net.http.SslCertificate);
|
||||
}
|
||||
|
||||
@@ -16,8 +16,6 @@
|
||||
|
||||
package android.net.http;
|
||||
|
||||
import com.android.internal.util.HexDump;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.text.format.DateFormat;
|
||||
@@ -25,6 +23,9 @@ import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.widget.TextView;
|
||||
|
||||
import com.android.internal.util.HexDump;
|
||||
import com.android.org.bouncycastle.asn1.x509.X509Name;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.math.BigInteger;
|
||||
import java.security.MessageDigest;
|
||||
@@ -39,8 +40,6 @@ import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.Vector;
|
||||
|
||||
import com.android.org.bouncycastle.asn1.x509.X509Name;
|
||||
|
||||
/**
|
||||
* SSL certificate info (certificate details) class
|
||||
*/
|
||||
@@ -247,6 +246,14 @@ public class SslCertificate {
|
||||
return mIssuedBy;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The {@code X509Certificate} used to create this {@code SslCertificate} or
|
||||
* {@code null} if no certificate was provided.
|
||||
*/
|
||||
public X509Certificate getX509Certificate() {
|
||||
return mX509Certificate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Convenience for UI presentation, not intended as public API.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user