Skip to content

Commit 751e02e

Browse files
committed
[chore] add x509 to trustmanager getter name
1 parent 2e34fa3 commit 751e02e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

paystack/src/main/java/co/paystack/android/api/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public ApiClient() throws NoSuchAlgorithmException, KeyManagementException, KeyS
3636
TLSSocketFactory tlsV1point2factory = new TLSSocketFactory();
3737
OkHttpClient okHttpClient = new OkHttpClient
3838
.Builder()
39-
.sslSocketFactory(tlsV1point2factory, tlsV1point2factory.getTrustManager())
39+
.sslSocketFactory(tlsV1point2factory, tlsV1point2factory.getX509TrustManager())
4040
.build();
4141

4242
Retrofit retrofit = new Retrofit.Builder()

paystack/src/main/java/co/paystack/android/api/utils/TLSSocketFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
public class TLSSocketFactory extends SSLSocketFactory {
3030

31-
public X509TrustManager getTrustManager() {
31+
public X509TrustManager getX509TrustManager() {
3232
return x509TrustManager;
3333
}
3434

0 commit comments

Comments
 (0)