Author: darran.lofthouse(a)jboss.com
Date: 2009-09-18 12:12:39 -0400 (Fri, 18 Sep 2009)
New Revision: 10714
Modified:
spi/trunk/src/main/java/org/jboss/wsf/spi/annotation/AuthMethod.java
spi/trunk/src/main/java/org/jboss/wsf/spi/annotation/TransportGuarantee.java
spi/trunk/src/main/java/org/jboss/wsf/spi/annotation/WebContext.java
Log:
[JBWS-2762] Relax restriction on @WebContext(authMethod).
Modified: spi/trunk/src/main/java/org/jboss/wsf/spi/annotation/AuthMethod.java
===================================================================
--- spi/trunk/src/main/java/org/jboss/wsf/spi/annotation/AuthMethod.java 2009-09-18
16:02:44 UTC (rev 10713)
+++ spi/trunk/src/main/java/org/jboss/wsf/spi/annotation/AuthMethod.java 2009-09-18
16:12:39 UTC (rev 10714)
@@ -21,6 +21,8 @@
*/
package org.jboss.wsf.spi.annotation;
+import org.jboss.logging.Logger;
+
/**
* The authMethod is used to configure the authentication mechanism for the web service.
* As a prerequisite to gaining access to any web service which are protected by an
@@ -30,6 +32,7 @@
*/
public final class AuthMethod
{
+ private static final Logger log = Logger.getLogger(AuthMethod.class);
/**
* Basic authentication.
@@ -50,7 +53,7 @@
/**
* Returns string representing correct auth method value.
- * @param s string to convert, both lowercased and uppercased values are accepted
+ * @param s string to convert.
* @return correct auth method value
* @throws IllegalArgumentException if <b>s</b> is <b>null</b>
or it contains unknown value.
*/
@@ -70,6 +73,8 @@
{
return AuthMethod.CLIENT_CERT;
}
+ log.warn("Non-standard auth method value: " + s);
+ return s;
}
throw new IllegalArgumentException("Illegal auth method value: " + s);
Modified: spi/trunk/src/main/java/org/jboss/wsf/spi/annotation/TransportGuarantee.java
===================================================================
---
spi/trunk/src/main/java/org/jboss/wsf/spi/annotation/TransportGuarantee.java 2009-09-18
16:02:44 UTC (rev 10713)
+++
spi/trunk/src/main/java/org/jboss/wsf/spi/annotation/TransportGuarantee.java 2009-09-18
16:12:39 UTC (rev 10714)
@@ -63,7 +63,7 @@
/**
* Returns string representing correct transport guarantee value.
- * @param s string to convert, both lowercased and uppercased values are accepted
+ * @param s string to convert.
* @return correct transport guarantee value
* @throws IllegalArgumentException if <b>s</b> is <b>null</b>
or it contains unknown value.
*/
Modified: spi/trunk/src/main/java/org/jboss/wsf/spi/annotation/WebContext.java
===================================================================
--- spi/trunk/src/main/java/org/jboss/wsf/spi/annotation/WebContext.java 2009-09-18
16:02:44 UTC (rev 10713)
+++ spi/trunk/src/main/java/org/jboss/wsf/spi/annotation/WebContext.java 2009-09-18
16:12:39 UTC (rev 10714)
@@ -64,7 +64,8 @@
* As a prerequisite to gaining access to any web service which are protected by an
authorization
* constraint, a user must have authenticated using the configured mechanism.
*
- * Legal values for this element are "BASIC", or "CLIENT-CERT".
+ * Standard values for this element are "BASIC", or "CLIENT-CERT",
custom authMethods may also
+ * be specified.
*
* @see AuthMethod
*/
Show replies by date