Verifies the certificate chain in an active SSLSocket. The socket must be connected. @param socket A connected SSLSocket whose certificate chain shall be verified using DANE. @return Whether the DANE verification is the only requirement according to the TLSA record. If this method r
(SSLSocket socket)
| 65 | * @throws CertificateException if the certificate chain provided differs from the one enforced using DANE. |
| 66 | */ |
| 67 | public boolean verify(SSLSocket socket) throws CertificateException { |
| 68 | if (!socket.isConnected()) { |
| 69 | throw new IllegalStateException("Socket not yet connected."); |
| 70 | } |
| 71 | return verify(socket.getSession()); |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * Verifies the certificate chain in an active {@link SSLSession}. |
nothing calls this directly
no test coverage detected