Author: rjung
Date: Wed Mar 26 05:10:29 2008
New Revision: 641278
URL: http://svn.apache.org/viewvc?rev=641278&view=rev
Log:
Add method sessionExists() to SingleSignOnEntry, which exists
in TC 5.5, but hasn't been ported forward.
Maybe we shouldn't port it to TC 6 and instead get rid
of this dependency, because it doesn't really work.
Modified:
tomcat/sandbox/tomcat-oacc/trunk/build.xml
tomcat/sandbox/tomcat-oacc/trunk/src/share/org/apache/catalina/authenticator/SingleSignOnEntry.java
Modified: tomcat/sandbox/tomcat-oacc/trunk/build.xml
URL:
http://svn.apache.org/viewvc/tomcat/sandbox/tomcat-oacc/trunk/build.xml?rev=641278&r1=641277&r2=641278&view=diff
==============================================================================
--- tomcat/sandbox/tomcat-oacc/trunk/build.xml (original)
+++ tomcat/sandbox/tomcat-oacc/trunk/build.xml Wed Mar 26 05:10:29 2008
@@ -156,6 +156,12 @@
<exclude name="**/package.html" />
<exclude name="**/LocalStrings_*" />
</jar>
+ <jar destfile="${cluster.dist}/catalina-sso.jar"
+ basedir="${cluster.build}/classes">
+ <include name="org/apache/catalina/authenticator/**" />
+ <exclude name="**/package.html" />
+ <exclude name="**/LocalStrings_*" />
+ </jar>
</target>
<target name="copy" depends="dist" >
Modified:
tomcat/sandbox/tomcat-oacc/trunk/src/share/org/apache/catalina/authenticator/SingleSignOnEntry.java
URL:
http://svn.apache.org/viewvc/tomcat/sandbox/tomcat-oacc/trunk/src/share/org/apache/catalina/authenticator/SingleSignOnEntry.java?rev=641278&r1=641277&r2=641278&view=diff
==============================================================================
---
tomcat/sandbox/tomcat-oacc/trunk/src/share/org/apache/catalina/authenticator/SingleSignOnEntry.java
(original)
+++
tomcat/sandbox/tomcat-oacc/trunk/src/share/org/apache/catalina/authenticator/SingleSignOnEntry.java
Wed Mar 26 05:10:29 2008
@@ -116,6 +116,20 @@
}
/**
+ * Is <code>Session</code> associated with this SSO?
+ *
+ * @param sso The <code>SingleSignOn</code> valve that is managing
+ * the SSO session.
+ * @return session exists
+ */
+ public synchronized boolean sessionExists(Session session) {
+ for (int i = 0; i < sessions.length; i++) {
+ if (session == sessions[i])
+ return true;
+ }
+ return false ;
+ }
+ /**
* Gets the name of the authentication type originally used to authenticate
* the user associated with the SSO.
*
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]