| | |
| | | */ |
| | | private PromptTrustManager() |
| | | { |
| | | |
| | | // No implementation is required. |
| | | } |
| | | |
| | |
| | | */ |
| | | public static TrustManager[] getTrustManagers() |
| | | { |
| | | |
| | | return trustManagerArray; |
| | | } |
| | | |
| | |
| | | public void checkClientTrusted(X509Certificate[] chain, String authType) |
| | | throws CertificateException |
| | | { |
| | | |
| | | int msgID = MSGID_PROMPTTM_REJECTING_CLIENT_CERT; |
| | | String message = getMessage(msgID); |
| | | throw new CertificateException(message); |
| | |
| | | public void checkServerTrusted(X509Certificate[] chain, String authType) |
| | | throws CertificateException |
| | | { |
| | | |
| | | if ((chain == null) || (chain.length == 0)) |
| | | { |
| | | System.out.println(getMessage(MSGID_PROMPTTM_NO_SERVER_CERT_CHAIN)); |
| | |
| | | */ |
| | | public X509Certificate[] getAcceptedIssuers() |
| | | { |
| | | |
| | | return new X509Certificate[0]; |
| | | } |
| | | } |