Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8192b417 authored by Iain Merrick's avatar Iain Merrick Committed by Android (Google) Code Review
Browse files

Merge "Add BrowserFrame.setCertificate() method." into honeycomb

parents 586f0513 b890e758
Loading
Loading
Loading
Loading
+11 −0
Original line number Original line Diff line number Diff line
@@ -1177,6 +1177,17 @@ class BrowserFrame extends Handler {
                contentDisposition, mimeType, contentLength);
                contentDisposition, mimeType, contentLength);
    }
    }


    /**
     * Called by JNI when we load a page over SSL.
     */
    private void setCertificate(String issuedTo, String issuedBy,
            long validNotBeforeMillis, long validNotAfterMillis) {
        Date validNotBefore = new Date(validNotBeforeMillis);
        Date validNotAfter = new Date(validNotAfterMillis);
        mCallbackProxy.onReceivedCertificate(new SslCertificate(
                issuedTo, issuedBy, validNotBefore, validNotAfter));
    }

    //==========================================================================
    //==========================================================================
    // native functions
    // native functions
    //==========================================================================
    //==========================================================================