irritating to see "servlet" in a package name. luckily the code has no
reference to the unfortunate spec that coined that term.

cheers,
reto

On Fri, Apr 1, 2011 at 5:40 PM, <[email protected]> wrote:

> Author: bblfish
> Date: Fri Apr  1 15:40:33 2011
> New Revision: 1087771
>
> URL: http://svn.apache.org/viewvc?rev=1087771&view=rev
> Log:
> fixed broken code, that stopped build. Previous checkin failed to catch
> this error.
>
> Modified:
>
>  
> incubator/clerezza/trunk/parent/platform.security.foafssl/test/src/main/scala/org/apache/clerezza/foafssl/testservlets/TestMe.scala
>
> Modified:
> incubator/clerezza/trunk/parent/platform.security.foafssl/test/src/main/scala/org/apache/clerezza/foafssl/testservlets/TestMe.scala
> URL:
> http://svn.apache.org/viewvc/incubator/clerezza/trunk/parent/platform.security.foafssl/test/src/main/scala/org/apache/clerezza/foafssl/testservlets/TestMe.scala?rev=1087771&r1=1087770&r2=1087771&view=diff
>
> ==============================================================================
> ---
> incubator/clerezza/trunk/parent/platform.security.foafssl/test/src/main/scala/org/apache/clerezza/foafssl/testservlets/TestMe.scala
> (original)
> +++
> incubator/clerezza/trunk/parent/platform.security.foafssl/test/src/main/scala/org/apache/clerezza/foafssl/testservlets/TestMe.scala
> Fri Apr  1 15:40:33 2011
> @@ -23,9 +23,7 @@ import org.apache.clerezza.platform.secu
>  import org.apache.clerezza.platform.usermanager.UserManager
>  import javax.ws.rs.{Produces, GET, Path}
>  import org.osgi.service.component.ComponentContext
> -import org.apache.clerezza.foafssl.auth.{WebIDClaim, X509Claim}
> -import java.security.Principal
> -import scala.collection.JavaConversions._
> +import org.apache.clerezza.foafssl.auth.X509Claim
>
>  /**
>  * implementation of (very early) version of test server for WebID so that
> the following tests
> @@ -59,15 +57,12 @@ class TestMe {
>     if (creds.size == 0) return "No public keys found"
>     val cred = creds.iterator.next
>     def outString(x509: X509Claim): String = {
> -      val res = for (p <- x509.verified) yield {
> -        p match {
> -          case id: WebIDClaim => "webid " + id.webId+" hasname "+
> id.getName
> -          case other: Principal => other.getName
> -        }
> +      val res = for (id <- x509.webidclaims) yield {
> +        id.verified + " webid " + id.webId + " hasname " + id.userName
>       }
> -
> -      return "X509 Certificate found. verified the following ids: " + res
> +      res.toString
>     }
> +
>     return cred match {
>       case x509: X509Claim => outString(x509)
>       case other: AnyRef => "no X509 certificate found: found " +
> other.getClass()
>
>
>

Reply via email to