Skip to content

Commit

Permalink
add checkServerTrusted(X509Certificate[], String, String, String) method
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyPesnyak committed Jan 11, 2019
1 parent 08e196d commit 87e0ca5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/src/main/java/just/trust/me/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,11 @@ public void checkClientTrusted(X509Certificate[] chain, String authType) throws
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {
}

public List<X509Certificate> checkServerTrusted(X509Certificate[] chain, String authType, String host) throws CertificateException {
ArrayList<X509Certificate> list = new ArrayList<X509Certificate>();
return list;
}

@Override
public X509Certificate[] getAcceptedIssuers() {
return new X509Certificate[0];
Expand Down

0 comments on commit 87e0ca5

Please sign in to comment.