From e4ba31be977167d9de91645b6259305387004b29 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Mon, 8 Feb 2010 22:20:26 +0000 Subject: [PATCH] 302198 Rename HttpClient authorization classes to Authentication git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1250 7e9141cc-0065-0410-87d8-b60c137991c4 --- .../main/java/org/eclipse/jetty/client/HttpClient.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpClient.java b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpClient.java index c1f7d3242ba..0ee716cf163 100644 --- a/jetty-client/src/main/java/org/eclipse/jetty/client/HttpClient.java +++ b/jetty-client/src/main/java/org/eclipse/jetty/client/HttpClient.java @@ -36,6 +36,7 @@ import javax.net.ssl.X509TrustManager; import org.eclipse.jetty.client.security.Authentication; import org.eclipse.jetty.client.security.RealmResolver; +import org.eclipse.jetty.client.security.SecurityListener; import org.eclipse.jetty.http.HttpBuffers; import org.eclipse.jetty.http.HttpSchemes; import org.eclipse.jetty.http.security.Password; @@ -271,6 +272,12 @@ public class HttpClient extends HttpBuffers implements Attributes } /* ------------------------------------------------------------ */ + /** Set a RealmResolver for client Authentication. + * If a realmResolver is set, then the HttpDestinations created by + * this client will instantiate a {@link SecurityListener} so that + * BASIC and DIGEST authentication can be performed. + * @param resolver + */ public void setRealmResolver(RealmResolver resolver) { _realmResolver = resolver; @@ -278,7 +285,7 @@ public class HttpClient extends HttpBuffers implements Attributes /* ------------------------------------------------------------ */ /** - * returns the SecurityRealmResolver registered with the HttpClient or null + * returns the SecurityRealmResolver reg_realmResolveristered with the HttpClient or null * * @return */