protected HttpsURLConnectionInfo getHttpsURLConnectionInfo() throws IOException { connection.connect(); return new HttpsURLConnectionInfo(connection); } protected void updateResponseHeaders(Message inMessage) {
protected HttpsURLConnectionInfo getHttpsURLConnectionInfo() throws IOException { connection.connect(); return new HttpsURLConnectionInfo(connection); } protected void updateResponseHeaders(Message inMessage) {
protected HttpsURLConnectionInfo getHttpsURLConnectionInfo() throws IOException { connection.connect(); return new HttpsURLConnectionInfo(connection); } protected void updateResponseHeaders(Message inMessage) {
return new HttpsURLConnectionInfo(url, method, cipherSuite, localCerts, principal, serverCerts, peer);
@Override protected HttpsURLConnectionInfo getHttpsURLConnectionInfo() throws IOException { if ("http".equals(outMessage.get("http.scheme"))) { return null; } connect(true); HostnameVerifier verifier = org.apache.cxf.transport.https.SSLUtils .getHostnameVerifier(findTLSClientParameters()); if (!verifier.verify(url.getHost(), session)) { throw new IOException("Could not verify host " + url.getHost()); } String method = (String)outMessage.get(Message.HTTP_REQUEST_METHOD); String cipherSuite = null; Certificate[] localCerts = null; Principal principal = null; Certificate[] serverCerts = null; Principal peer = null; if (session != null) { cipherSuite = session.getCipherSuite(); localCerts = session.getLocalCertificates(); principal = session.getLocalPrincipal(); serverCerts = session.getPeerCertificates(); peer = session.getPeerPrincipal(); } return new HttpsURLConnectionInfo(url, method, cipherSuite, localCerts, principal, serverCerts, peer); }
@Override protected HttpsURLConnectionInfo getHttpsURLConnectionInfo() throws IOException { if ("http".equals(outMessage.get("http.scheme"))) { return null; } connect(true); HostnameVerifier verifier = org.apache.cxf.transport.https.SSLUtils .getHostnameVerifier(findTLSClientParameters()); if (!verifier.verify(url.getHost(), session)) { throw new IOException("Could not verify host " + url.getHost()); } String method = (String)outMessage.get(Message.HTTP_REQUEST_METHOD); String cipherSuite = null; Certificate[] localCerts = null; Principal principal = null; Certificate[] serverCerts = null; Principal peer = null; if (session != null) { cipherSuite = session.getCipherSuite(); localCerts = session.getLocalCertificates(); principal = session.getLocalPrincipal(); serverCerts = session.getPeerCertificates(); peer = session.getPeerPrincipal(); } return new HttpsURLConnectionInfo(url, method, cipherSuite, localCerts, principal, serverCerts, peer); }