Loading keystore/java/android/security/KeyChain.java +6 −1 Original line number Original line Diff line number Diff line Loading @@ -336,7 +336,12 @@ public final class KeyChain { KeyChainConnection keyChainConnection = bind(context); KeyChainConnection keyChainConnection = bind(context); try { try { IKeyChainService keyChainService = keyChainConnection.getService(); IKeyChainService keyChainService = keyChainConnection.getService(); byte[] certificateBytes = keyChainService.getCertificate(alias); final byte[] certificateBytes = keyChainService.getCertificate(alias); if (certificateBytes == null) { return null; } TrustedCertificateStore store = new TrustedCertificateStore(); TrustedCertificateStore store = new TrustedCertificateStore(); List<X509Certificate> chain = store List<X509Certificate> chain = store .getCertificateChain(toCertificate(certificateBytes)); .getCertificateChain(toCertificate(certificateBytes)); Loading Loading
keystore/java/android/security/KeyChain.java +6 −1 Original line number Original line Diff line number Diff line Loading @@ -336,7 +336,12 @@ public final class KeyChain { KeyChainConnection keyChainConnection = bind(context); KeyChainConnection keyChainConnection = bind(context); try { try { IKeyChainService keyChainService = keyChainConnection.getService(); IKeyChainService keyChainService = keyChainConnection.getService(); byte[] certificateBytes = keyChainService.getCertificate(alias); final byte[] certificateBytes = keyChainService.getCertificate(alias); if (certificateBytes == null) { return null; } TrustedCertificateStore store = new TrustedCertificateStore(); TrustedCertificateStore store = new TrustedCertificateStore(); List<X509Certificate> chain = store List<X509Certificate> chain = store .getCertificateChain(toCertificate(certificateBytes)); .getCertificateChain(toCertificate(certificateBytes)); Loading