MCPcopy Create free account
hub / github.com/M66B/FairEmail / verify

Method verify

app/src/main/java/org/minidns/dane/DaneVerifier.java:67–72  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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}.

Callers

nothing calls this directly

Calls 4

convertMethod · 0.95
isConnectedMethod · 0.45
getSessionMethod · 0.45

Tested by

no test coverage detected