rogerrut 2005/01/28 14:35:05
Modified: jetspeed-api/src/java/org/apache/jetspeed/sso SSOSite.java
SSOException.java SSOProvider.java
Log:
SSO Update
--> Added group support. You can create an SSO entry for a group. A user will
be checked against each member of the group for a match
--> Added new API's which makes it easier to call from the UI since at that
point no subject is available.
--> Updated SSO Management portlets so that it handles groups
--> Cleanup of code and removal of unused imports
Revision Changes Path
1.4 +4 -30
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/sso/SSOSite.java
Index: SSOSite.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/sso/SSOSite.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SSOSite.java 4 Dec 2004 22:27:19 -0000 1.3
+++ SSOSite.java 28 Jan 2005 22:35:05 -0000 1.4
@@ -14,28 +14,15 @@
package org.apache.jetspeed.sso;
import java.util.Collection;
-
-import org.apache.jetspeed.security.om.InternalCredential;
import org.apache.jetspeed.sso.SSOPrincipal;
/**
+ * Interface SSOSite
+ *
* @author rruttimann
*
- * TODO To change the template for this generated type comment go to
- * Window - Preferences - Java - Code Generation - Code and Comments
*/
-public interface SSOSite {
-
- /**
- * @return Returns the credentials.
- */
- public Collection getCredentials() ;
-
- /**
- * @param credentials The credentials to set.
- */
- public void setCredentials(Collection credentials);
-
+public interface SSOSite {
/**
* @return Returns the isAllowUserSet.
*/
@@ -96,23 +83,10 @@
*/
public void setSiteURL(String siteURL) ;
- /**
- * Utility functions
- * addCredential()
- * Adds the credentail to the credentials collection
- *
- */
- public void addCredential(InternalCredential credential) throws
SSOException;
- /**
- * removeCredential()
- * removes a credentail from the credentials collection
- *
- */
- public void removeCredential(InternalCredential credential) throws
SSOException;
/**
- * Adds the credentail to the credentials collection
+ * Adds the SSOPrincipal to the principals collection
*
*/
public void addPrincipal(SSOPrincipal principal) throws SSOException;
1.4 +1 -1
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/sso/SSOException.java
Index: SSOException.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/sso/SSOException.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SSOException.java 4 Dec 2004 22:27:19 -0000 1.3
+++ SSOException.java 28 Jan 2005 22:35:05 -0000 1.4
@@ -50,7 +50,7 @@
public static final String
FAILED_ADDING_PRINCIPAL_TO_MAPPING_TABLE_FOR_SITE = "Could not add Principal
from SITE mapping table.";
/** <p>Site/principal has remote principal. Calll update.</p> */
- public static final String REMOTE_PRINCIPAL_EXISTS_CALL_UPDATE =
"Site/principal has remote principal. Calll update";
+ public static final String REMOTE_PRINCIPAL_EXISTS_CALL_UPDATE = "Remote
principal for site/principal already exists. Call update instead";
/**
* <p>Default Constructor.</p>
1.9 +22 -0
jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/sso/SSOProvider.java
Index: SSOProvider.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/sso/SSOProvider.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- SSOProvider.java 13 Jan 2005 22:16:45 -0000 1.8
+++ SSOProvider.java 28 Jan 2005 22:35:05 -0000 1.9
@@ -71,4 +71,26 @@
void removeSite(SSOSite site) throws SSOException;
+ /**
+ * addCredentialsForSite()
+ * @param fullPath
+ * @param remoteUser
+ * @param site
+ * @param pwd
+ * @throws SSOException
+ */
+ void addCredentialsForSite(String fullPath, String remoteUser, String
site, String pwd) throws SSOException;
+
+ /**
+ * removeCredentialsForSite()
+ * @param fullPath
+ * @param site
+ * @throws SSOException
+ */
+ void removeCredentialsForSite(String fullPath, String site) throws
SSOException;
+
+ /* Retrive site information */
+ String getSiteURL(String site);
+ String getSiteName(String site);
+
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]