it.eng.spagobi.services.cas
Class CasSsoService

java.lang.Object
  extended by it.eng.spagobi.services.cas.CasSsoService
All Implemented Interfaces:
SsoServiceInterface

public class CasSsoService
extends java.lang.Object
implements SsoServiceInterface

This class contain the specific code of CAS


Constructor Summary
CasSsoService()
           
 
Method Summary
 java.lang.String readTicket(javax.servlet.http.HttpSession session, java.lang.String filterReceipt)
          Get a new ticket.
 java.lang.String readUserIdentifier(javax.servlet.http.HttpSession session)
          Read user id.
 java.lang.String readUserIdentifier(javax.portlet.PortletSession session)
          Read user id.
 void validateTicket(java.lang.String ticket, java.lang.String userId, java.lang.String validateUrl, java.lang.String validateService)
          This method verify the ticket.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CasSsoService

public CasSsoService()
Method Detail

readUserIdentifier

public java.lang.String readUserIdentifier(javax.servlet.http.HttpSession session)
Read user id.

Specified by:
readUserIdentifier in interface SsoServiceInterface
Parameters:
session - HttpSession
Returns:
String

readUserIdentifier

public java.lang.String readUserIdentifier(javax.portlet.PortletSession session)
Read user id.

Specified by:
readUserIdentifier in interface SsoServiceInterface
Parameters:
session - PortletSession
Returns:
String

readTicket

public java.lang.String readTicket(javax.servlet.http.HttpSession session,
                                   java.lang.String filterReceipt)
                            throws java.io.IOException
Get a new ticket.

Specified by:
readTicket in interface SsoServiceInterface
Parameters:
session - HttpSession
filterReceipt - String
Returns:
String
Throws:
java.io.IOException - Signals that an I/O exception has occurred.

validateTicket

public void validateTicket(java.lang.String ticket,
                           java.lang.String userId,
                           java.lang.String validateUrl,
                           java.lang.String validateService)
                    throws SecurityException
This method verify the ticket.

Specified by:
validateTicket in interface SsoServiceInterface
Parameters:
ticket - String, ticket to validate
userId - String, user id
validateUrl - String
validateService - String
Throws:
SecurityException - the security exception