abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r605242 - /incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/AbderaClient.java
Date Tue, 18 Dec 2007 16:03:46 GMT
Author: jmsnell
Date: Tue Dec 18 08:03:45 2007
New Revision: 605242

URL: http://svn.apache.org/viewvc?rev=605242&view=rev
Log:
As suggested on the user mailing list... provide a method for unregistering an auth scheme.

Modified:
    incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/AbderaClient.java

Modified: incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/AbderaClient.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/AbderaClient.java?rev=605242&r1=605241&r2=605242&view=diff
==============================================================================
--- incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/AbderaClient.java
(original)
+++ incubator/abdera/java/trunk/client/src/main/java/org/apache/abdera/protocol/client/AbderaClient.java
Tue Dec 18 08:03:45 2007
@@ -309,6 +309,21 @@
       AuthPolicy.registerAuthScheme(name, scheme);
   }
   
+  /**
+   * Unregister a specific authentication scheme
+   */
+  public static void unregisterScheme(
+    String name) {
+      AuthPolicy.unregisterAuthScheme(name);
+  }
+  
+  /**
+   * Unregister multiple schemes
+   */
+  public static void unregisterScheme(String... names) {
+    for (String name : names) unregisterScheme(name);
+  }
+  
   public static void registerTrustManager(
     TrustManager trustManager) {
       registerTrustManager(trustManager,443);



Mime
View raw message