Oleg Kalnichevski
9af96d03ff
Removed deprecated test code
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623736 13f79535-47bb-0310-9956-ffa450edef68
2014-09-09 10:08:38 +00:00
Oleg Kalnichevski
abe50fafe4
HttpClientBuilder to initialize public suffix matcher for cookie specs and the default hostname verifier
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623735 13f79535-47bb-0310-9956-ffa450edef68
2014-09-09 10:06:43 +00:00
Oleg Kalnichevski
a4c0c6ed7c
Default and standard cookie specs to use public suffix list when available
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623734 13f79535-47bb-0310-9956-ffa450edef68
2014-09-09 10:06:29 +00:00
Oleg Kalnichevski
d568ebdbf3
Initialize singleton cookie specs lazily
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623733 13f79535-47bb-0310-9956-ffa450edef68
2014-09-09 10:06:14 +00:00
Oleg Kalnichevski
4478df7a70
Added public suffix list loader
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623462 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 19:06:02 +00:00
Oleg Kalnichevski
8c2d2c8192
Added a statement to NOTICE regarding distribution of the Public Suffix List copied from < https://publicsuffix.org/list/effective_tld_names.dat > licensed under MPLv2; added MPLv2 license text
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623394 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 13:37:56 +00:00
Oleg Kalnichevski
067a2454e1
Download public suffix list from Mozilla maintained < https://publicsuffix.org/ >
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623393 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 13:37:43 +00:00
Oleg Kalnichevski
cffb877b1e
Ignore unsupported cookie policies
...
Contributed by Dmitry Potapov <dpotapov@yandex-team.ru>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623316 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 07:57:20 +00:00
Oleg Kalnichevski
e82fdff2e9
Adding support for using delegated GSSCredential for Kerberos authentication
...
Contributed by Vipul Mehta <vipulmehta.1989@gmail.com>
Internally httpclient relies on GSS API which uses JAAS login
configuration specified by user to get the GSSCredential. This patch
will allow a user to avoid the config file and directly set a delegated
or normal GSSCredential. A normal GSSCredential can be obtained
programatically from
spn-keytab or user-password using custom Login module.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1623311 13f79535-47bb-0310-9956-ffa450edef68
2014-09-08 07:44:18 +00:00
Oleg Kalnichevski
6f706c2328
Default HostnameVerifier to check server identity against public suffix list
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1622866 13f79535-47bb-0310-9956-ffa450edef68
2014-09-06 14:46:12 +00:00
Sebastian Bazley
3bb9aa5099
string matching is cheaper than regex matching so do it first
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1622753 13f79535-47bb-0310-9956-ffa450edef68
2014-09-05 18:19:55 +00:00
Oleg Kalnichevski
9e83772d35
Reverted to simple wildcard matching
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1622696 13f79535-47bb-0310-9956-ffa450edef68
2014-09-05 13:17:30 +00:00
Oleg Kalnichevski
2466424d5d
Re-designed Public Suffix matching algorhithm based on recommendations published at https://publicsuffix.org/list/
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1622478 13f79535-47bb-0310-9956-ffa450edef68
2014-09-04 14:00:16 +00:00
Sebastian Bazley
4ee8c3e011
Spelling
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1621235 13f79535-47bb-0310-9956-ffa450edef68
2014-08-29 00:22:04 +00:00
Sebastian Bazley
208aa059de
Trailing space
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1621230 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 23:40:37 +00:00
Sebastian Bazley
96475684ab
Javadoc8 fixes
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1621225 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 23:09:12 +00:00
Sebastian Bazley
865260ba79
Document missing case labels
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1621220 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 22:47:08 +00:00
Sebastian Bazley
2865cd0d0d
Suppress deprecation warning
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1621217 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 22:46:05 +00:00
Oleg Kalnichevski
195753c562
Deprecated old non-thread safe public suffix domain filter in favor of new thread safe implementation
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1621183 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 19:08:25 +00:00
Oleg Kalnichevski
3cd94a86f3
Factored Public Suffix matching code into a separate utility class
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1621182 13f79535-47bb-0310-9956-ffa450edef68
2014-08-28 19:08:09 +00:00
Oleg Kalnichevski
1e2d2f38a0
Deprecated internal punycode implementation in favor of standard java.net.IDN
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1620942 13f79535-47bb-0310-9956-ffa450edef68
2014-08-27 17:11:18 +00:00
Oleg Kalnichevski
221e7ba59e
Refactored public suffix list parser; deprecated old implementation
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1620941 13f79535-47bb-0310-9956-ffa450edef68
2014-08-27 17:08:08 +00:00
Oleg Kalnichevski
45100c7d6d
Deprecated browser compat policy in favor of the default (best match) policy
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1620940 13f79535-47bb-0310-9956-ffa450edef68
2014-08-27 17:07:53 +00:00
Oleg Kalnichevski
139529327c
Replaced BEST_MATCH with DEFAULT policy
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1620939 13f79535-47bb-0310-9956-ffa450edef68
2014-08-27 17:07:34 +00:00
Oleg Kalnichevski
92700fd23b
Cookie spec provides to re-use the same thread-safe CookieSpec instance by default
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1620787 13f79535-47bb-0310-9956-ffa450edef68
2014-08-27 07:44:54 +00:00
Oleg Kalnichevski
70d3412315
Default cookie spec to permit 'expires' attribute for Netscape style cookies only
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1620613 13f79535-47bb-0310-9956-ffa450edef68
2014-08-26 14:38:28 +00:00
Oleg Kalnichevski
243c862a03
Made all cookie spec implementations thread safe
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1620612 13f79535-47bb-0310-9956-ffa450edef68
2014-08-26 14:37:36 +00:00
Oleg Kalnichevski
6b2b1a6e93
Code cleanup
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619782 13f79535-47bb-0310-9956-ffa450edef68
2014-08-22 12:35:59 +00:00
Oleg Kalnichevski
5c006f8d30
BestMatchSpec to use Netscape policy instead of browser compatibility for netscape style cookies; browser compatibility policy is to be deprecated
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619780 13f79535-47bb-0310-9956-ffa450edef68
2014-08-22 12:35:14 +00:00
Gary D. Gregory
aa4204b412
Javadoc 8 fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619457 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 15:51:47 +00:00
Gary D. Gregory
224711a6d1
Javadoc 8 fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619450 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 15:44:19 +00:00
Gary D. Gregory
6d7b82d0b6
Javadoc 8 fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619445 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 15:32:55 +00:00
Gary D. Gregory
fdd7cae18b
Javadoc 8 fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619440 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 15:29:33 +00:00
Gary D. Gregory
b1c463577a
Javadoc 8 fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619439 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 15:27:50 +00:00
Gary D. Gregory
b718e427a6
Fix bogus javadoc.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619434 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 15:23:21 +00:00
Gary D. Gregory
5a851c7f0d
Javadoc 8 fixes: Use {@code foo} instead of <code>foo</foo>. Fix a previous bad commit.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619433 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 15:21:32 +00:00
Gary D. Gregory
fb374dab5f
Javadoc 8 fixes: Use {@code foo} instead of <code>foo</foo>.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619429 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 15:09:04 +00:00
Gary D. Gregory
ebd174ab22
Checkstyle: remove trailing space.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619423 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 14:57:22 +00:00
Gary D. Gregory
5e2d999c0b
Javadoc 8 fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619420 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 14:56:49 +00:00
Gary D. Gregory
8e1feea095
Javadoc 8 fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619409 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 14:22:14 +00:00
Gary D. Gregory
c76412a839
Javadoc 8 fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619405 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 14:19:59 +00:00
Gary D. Gregory
4007c05f9b
Javadoc 8 fixes.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619400 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 14:11:32 +00:00
Gary D. Gregory
7e4cfbb688
Branding: Use "Apache" in Maven module names and descriptions.
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619388 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 13:22:42 +00:00
Oleg Kalnichevski
25dfe09669
HTTPCLIENT-1547: HttpClient OSGi bundle doesn't import the package "javax.naming"
...
Contributed by Willem Jiang <ningjiang at apache.org>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619374 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 11:58:50 +00:00
Oleg Kalnichevski
d03d53cb39
HTTPCLIENT-1541: Use correct service principle name (HTTP/hostname) for native Win auth
...
Contributed by Ka-Lok Fung <ka-lok.fung at sap.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619373 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 11:58:13 +00:00
Oleg Kalnichevski
268d6cc113
Improved cert identity matching based on regex patterns
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619372 13f79535-47bb-0310-9956-ffa450edef68
2014-08-21 11:57:11 +00:00
Oleg Kalnichevski
4f49584d6b
HTTPCLIENT-1545: Improved unit test
...
Contributed by Ka-Lok Fung <ka-lok.fung at sap.com>
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1619126 13f79535-47bb-0310-9956-ffa450edef68
2014-08-20 15:28:59 +00:00
Oleg Kalnichevski
79b1eae93b
Deprecated BrowserCompatHostnameVerifier and StrictHostnameVerifier in favor of DefaultHostnameVerifier
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1618870 13f79535-47bb-0310-9956-ffa450edef68
2014-08-19 14:19:21 +00:00
Oleg Kalnichevski
95c0f4857e
Ported existing test cases to new default HostnameVerifier impl
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1618868 13f79535-47bb-0310-9956-ffa450edef68
2014-08-19 14:11:23 +00:00
Oleg Kalnichevski
d2400e0758
Improved compliance with RFC 2818: default hostname verifier to ignore the common name of the certificate subject if alternative subject names (dNSName or iPAddress) are present
...
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1618867 13f79535-47bb-0310-9956-ffa450edef68
2014-08-19 14:09:30 +00:00