Author: bblfish
Date: Mon Apr 4 09:27:00 2011
New Revision: 1088518
URL: http://svn.apache.org/viewvc?rev=1088518&view=rev
Log:
Return null when no verified webid is found, to allow other authentication
methods to kick in
Modified:
incubator/clerezza/trunk/parent/platform.security.foafssl/core/src/main/scala/org/apache/clerezza/foafssl/auth/FoafSslAuthentication.scala
Modified:
incubator/clerezza/trunk/parent/platform.security.foafssl/core/src/main/scala/org/apache/clerezza/foafssl/auth/FoafSslAuthentication.scala
URL:
http://svn.apache.org/viewvc/incubator/clerezza/trunk/parent/platform.security.foafssl/core/src/main/scala/org/apache/clerezza/foafssl/auth/FoafSslAuthentication.scala?rev=1088518&r1=1088517&r2=1088518&view=diff
==============================================================================
---
incubator/clerezza/trunk/parent/platform.security.foafssl/core/src/main/scala/org/apache/clerezza/foafssl/auth/FoafSslAuthentication.scala
(original)
+++
incubator/clerezza/trunk/parent/platform.security.foafssl/core/src/main/scala/org/apache/clerezza/foafssl/auth/FoafSslAuthentication.scala
Mon Apr 4 09:27:00 2011
@@ -76,6 +76,8 @@ class FoafSslAuthentication extends Weig
claim.principal
}
+ if (verified.size == 0) return null
+
return new Subject(true,
asJavaSet(verified.toSet),
Collections.singleton(x509c),