Created
May 20, 2020 21:22
-
-
Save jinal90/3b117243979dbffa0888549f7676a36a to your computer and use it in GitHub Desktop.
Code snippet to explain implementation of SSL pinning in Retrofit.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Retrofit retrofit = new Retrofit.Builder() | |
.baseUrl("https://www.example.com") | |
.client(okHttpClientWithCertificatePinner) | |
.build(); | |
YourServiceClass service = retrofit.create(YourServiceClass.class); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment