You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ro...@apache.org on 2004/11/22 07:11:34 UTC

cvs commit: jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/sso SSOSite.java SSOException.java

rogerrut    2004/11/21 22:11:34

  Modified:    jetspeed-api/src/java/org/apache/jetspeed/sso
                        SSOException.java
  Added:       jetspeed-api/src/java/org/apache/jetspeed/sso SSOSite.java
  Log:
  Implemented SSO API except for addBasicAuthenticationForSite()
  Completed Unit Test for SSO
  
  Revision  Changes    Path
  1.2       +9 -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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- SSOException.java	16 Nov 2004 19:03:35 -0000	1.1
  +++ SSOException.java	22 Nov 2004 06:11:34 -0000	1.2
  @@ -40,7 +40,15 @@
      /** <p>Failed to store site info in database.</p> */
      public static final String FAILED_STORING_SITE_INFO_IN_DB = "Failed to store site info in database.";
      
  -  
  +   /** <p>Requested principal doesn't exist in Principal store.</p> */
  +   public static final String REQUESTED_PRINCIPAL_DOES_NOT_EXIST = "Requested principal doesn't exist in Principal store.";
  +   
  +   /** <p>Could not remove Principla from SITE mapping table.</p> */
  +   public static final String FAILED_REMOVING_PRINCIPAL_FROM_MAPPING_TABLE_FOR_SITE = "Could not remove Principal from SITE mapping table.";
  +   
  +   /** <p>Could not add Principal from SITE mapping table.</p> */
  +   public static final String FAILED_ADDING_PRINCIPAL_TO_MAPPING_TABLE_FOR_SITE = "Could not add Principal from SITE mapping table.";
  +   
      /**
       * <p>Default Constructor.</p>
       */
  
  
  
  1.1                  jakarta-jetspeed-2/jetspeed-api/src/java/org/apache/jetspeed/sso/SSOSite.java
  
  Index: SSOSite.java
  ===================================================================
  /*
   * Created on Nov 19, 2004
   *
   * Copyright 2003-2004 Groundwork Open Source Solution.
   * 
   *      http://www.itgroundwork.com
   * 
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,
   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   * See the License for the specific language governing permissions and
   * limitations under the License.
   */
  package org.apache.jetspeed.sso;
  
  import java.util.Collection;
  
  import org.apache.jetspeed.security.om.InternalCredential;
  import org.apache.jetspeed.security.om.InternalPrincipal;
  
  /**
   * @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);
  	
  	/**
  	 * @return Returns the isAllowUserSet.
  	 */
  	public boolean isAllowUserSet() ;
  	
  	/**
  	 * @param isAllowUserSet The isAllowUserSet to set.
  	 */
  	public void setAllowUserSet(boolean isAllowUserSet);
  	
  	/**
  	 * @return Returns the isCertificateRequired.
  	 */
  	public boolean isCertificateRequired();
  	
  	/**
  	 * @param isCertificateRequired The isCertificateRequired to set.
  	 */
  	public void setCertificateRequired(boolean isCertificateRequired);
  	
  	/**
  	 * @return Returns the name.
  	 */
  	public String getName() ;
  	
  	/**
  	 * @param name The name to set.
  	 */
  	public void setName(String name) ;
  	
  	/**
  	 * @return Returns the principals.
  	 */
  	public Collection getPrincipals() ;
  	
  	/**
  	 * @param principals The principals to set.
  	 */
  	public void setPrincipals(Collection principals);
  	
  	/**
  	 * @return Returns the siteId.
  	 */
  	public int getSiteId() ;
  	
  	/**
  	 * @param siteId The siteId to set.
  	 */
  	public void setSiteId(int siteId) ;
  	
  	/**
  	 * @return Returns the siteURL.
  	 */
  	public String getSiteURL() ;
  	
  	/**
  	 * @param siteURL The siteURL to set.
  	 */
  	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
  	 *
  	 */
  	public void addPrincipal(InternalPrincipal principal) throws SSOException;
  	
  	/**
  	* removePrincipal()
  	 * removes a principal from the principals collection
  	 *
  	 */
  	public void removePrincipal(long principalId) throws SSOException;
  }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org