Java Doc for AbstractSSOAgent.java in  » Authentication-Authorization » josso-1.7 » org » josso » agent » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Authentication Authorization » josso 1.7 » org.josso.agent 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.josso.agent.AbstractSSOAgent

All known Subclasses:   org.josso.tc60.agent.CatalinaSSOAgent,  org.josso.servlet.agent.GenericServletSSOAgent,  org.josso.wls92.agent.WLSSSOAgent,  org.josso.tc50.agent.CatalinaSSOAgent,  org.josso.tc55.agent.CatalinaSSOAgent,
AbstractSSOAgent
abstract public class AbstractSSOAgent implements SSOAgent(Code)
Represents a partial implementation of an Single Sign-on Agent. An Agent stands in between the Gateway and the Security Domain were partner application reside. It provides transparent security context to partner applications, providing user and role information by invoking the gateway through JAAS.
author:
   Gianluca Brigandi
version:
   CVS $Id: AbstractSSOAgent.java 508 2008-02-18 13:32:29Z sgonzalez $


Field Summary
final public static  longDEFAULT_SESSION_ACCESS_MIN_INTERVAL
    
protected  SSOAgentConfiguration_cfg
    
protected  HashMapcache
     The cache of SingleSignOnEntry instances for authenticated Principals, keyed by the cookie value that is used to select them.
protected  intdebug
    
protected  HashMapreverse
     The cache of single sign on identifiers, keyed by the Session that is associated with them.
protected  booleanstarted
    


Method Summary
protected  SingleSignOnEntryaccessSession(SingleSignOnEntry entry, String jossoSessionId)
     Access sso session related with given entry.
protected  voidassociateLocalSession(String ssoId, LocalSession localSession)
     Associate the specified single sign on identifier with the specified Session.
abstract protected  Principalauthenticate(SSOAgentRequest request)
     Template method used by the agent to obtain a principal from a SSO Agent request.
public  StringbuildBackToURL(HttpServletRequest hreq, String uri)
     This method builds the back_to URL value pointing to the given URI.
protected  voidderegister(String ssoId)
     Deregister the specified single sign on identifier, and invalidate any associated sessions.
public  SSOAgentConfigurationgetConfiguration()
    
public  intgetDebug()
    
public  StringgetGatewayLoginErrorUrl()
     Returns the Error Login Url of the Gateway.
public  StringgetGatewayLoginUrl()
     Returns the Login Form Url of the Gateway.
public  StringgetGatewayLogoutUrl()
     Returns the Logout Form Url of the Gateway.
public  GatewayServiceLocatorgetGatewayServiceLocator()
     Obtains the Gateway Service Locator used by the SSOAgent to build the concrete clients needed to query the Gateway services.
public  longgetL1CacheHits()
    
public  longgetL2CacheHits()
    
public  SSOPartnerAppConfiggetPartnerAppConfig(String contextPath)
     Returns the partner application configuration definition associtated with the given context.
public  longgetRequestCount()
    
public  SSOIdentityManagergetSSOIdentityManager()
    
public  SSOSessionManagergetSSOSessionManager()
    
public  longgetSessionAccessMinInterval()
     Gets the session access min interval.
public  StringgetSinglePointOfAccess()
     Single Point of Access to the SSO infrastructure.
public  booleanisPartnerApp(String contextPath)
     Returns true if the received context should be processed by this agent.
protected  voidlocalSessionDestroyedEvent(LocalSession session)
     Disassociates a Local Session from the Single Sign-on session since the Local Session was destroyed.
public  voidlocalSessionEvent(LocalSessionEvent event)
     Acknowledge the occurrence of the specified event.
abstract protected  voidlog(String message)
     Log a message on the Logger associated with our Container (if any).
abstract protected  voidlog(String message, Throwable throwable)
     Log a message on the Logger associated with our Container (if any).
protected  SingleSignOnEntrylookup(String ssoId)
     Look up and return the cached SingleSignOn entry associated with this sso id value, if there is one; otherwise return null.
public  CookienewJossoCookie(String path, String value)
     This creates a new JOSSO Cookie for the given path and value.
public  SingleSignOnEntryprocessRequest(SSOAgentRequest request)
     Authenticated a user session previously authenticated by the gateway.
protected  voidregister(String ssoId, Principal principal, String authType)
     Register the specified Principal as being associated with the specified value for the single sign on identifier.
protected  StringresolveAssertion(String assertionId)
    
public  voidsetConfiguration(SSOAgentConfiguration cfg)
    
public  voidsetDebug(int debug)
    
public  voidsetGatewayLoginErrorUrl(String gatewayLoginErrorUrl)
     Sets the Error Login Url of the Gateway.
public  voidsetGatewayLoginUrl(String gatewayLoginUrl)
     Sets the Login Form Url of the Gateway.
public  voidsetGatewayLogoutUrl(String gatewayLogoutUrl)
     Sets the Logout Form Url of the Gateway.
public  voidsetGatewayServiceLocator(GatewayServiceLocator gsl)
     Configures the Gateway Service Locator to be used by the SSOAgent.
public  voidsetSessionAccessMinInterval(String v)
     Used by the configuraiton, to set the session access min interval.
public  voidsetSessionAccessMinInterval(long sessionAccessMinInterval)
     Sets the session access min interval.
public  voidsetSinglePointOfAccess(String singlePointOfAccess)
     Single Point of Access to the SSO infrastructure.
public  voidstart()
     Starts the Agent.
public  voidstop()
     Stop the Agent.

Field Detail
DEFAULT_SESSION_ACCESS_MIN_INTERVAL
final public static long DEFAULT_SESSION_ACCESS_MIN_INTERVAL(Code)



_cfg
protected SSOAgentConfiguration _cfg(Code)



cache
protected HashMap cache(Code)
The cache of SingleSignOnEntry instances for authenticated Principals, keyed by the cookie value that is used to select them.



debug
protected int debug(Code)



reverse
protected HashMap reverse(Code)
The cache of single sign on identifiers, keyed by the Session that is associated with them.



started
protected boolean started(Code)





Method Detail
accessSession
protected SingleSignOnEntry accessSession(SingleSignOnEntry entry, String jossoSessionId)(Code)
Access sso session related with given entry. If sso session is no longer valid, deregisters the session and return null.
Parameters:
  entry - null if the sso session is no longer valid.



associateLocalSession
protected void associateLocalSession(String ssoId, LocalSession localSession)(Code)
Associate the specified single sign on identifier with the specified Session.
Parameters:
  ssoId - Single sign on identifier
Parameters:
  localSession - Local Session to be associated to the SSO Session.



authenticate
abstract protected Principal authenticate(SSOAgentRequest request)(Code)
Template method used by the agent to obtain a principal from a SSO Agent request.
Parameters:
  request - the authenticated principal.



buildBackToURL
public String buildBackToURL(HttpServletRequest hreq, String uri)(Code)
This method builds the back_to URL value pointing to the given URI. The determines the host used to build the back_to URL in the following order : First, checks the singlePointOfAccess agent's configuration property. Then checks the reverse-proxy-host HTTP header value from the request. Finally uses current host name.



deregister
protected void deregister(String ssoId)(Code)
Deregister the specified single sign on identifier, and invalidate any associated sessions.
Parameters:
  ssoId - Single sign on identifier to deregister



getConfiguration
public SSOAgentConfiguration getConfiguration()(Code)



getDebug
public int getDebug()(Code)



getGatewayLoginErrorUrl
public String getGatewayLoginErrorUrl()(Code)
Returns the Error Login Url of the Gateway. the gateway login url



getGatewayLoginUrl
public String getGatewayLoginUrl()(Code)
Returns the Login Form Url of the Gateway. the gateway login url



getGatewayLogoutUrl
public String getGatewayLogoutUrl()(Code)
Returns the Logout Form Url of the Gateway. the gateway login url



getGatewayServiceLocator
public GatewayServiceLocator getGatewayServiceLocator()(Code)
Obtains the Gateway Service Locator used by the SSOAgent to build the concrete clients needed to query the Gateway services. This getter is need by the JAASLoginModule to know which Gateway Service Locator to use. the configured gateway service locator



getL1CacheHits
public long getL1CacheHits()(Code)



getL2CacheHits
public long getL2CacheHits()(Code)



getPartnerAppConfig
public SSOPartnerAppConfig getPartnerAppConfig(String contextPath)(Code)
Returns the partner application configuration definition associtated with the given context. If no partner application is defined for the context, returns null.



getRequestCount
public long getRequestCount()(Code)



getSSOIdentityManager
public SSOIdentityManager getSSOIdentityManager()(Code)



getSSOSessionManager
public SSOSessionManager getSSOSessionManager()(Code)



getSessionAccessMinInterval
public long getSessionAccessMinInterval()(Code)
Gets the session access min interval.



getSinglePointOfAccess
public String getSinglePointOfAccess()(Code)
Single Point of Access to the SSO infrastructure. Useful when working in N-Tier mode behind a reverse proxy or load balancer



isPartnerApp
public boolean isPartnerApp(String contextPath)(Code)
Returns true if the received context should be processed by this agent. It means that the context belongs to a partner application.
Parameters:
  contextPath - the web application context to be checked. true if this context belongs to a josso partner app.



localSessionDestroyedEvent
protected void localSessionDestroyedEvent(LocalSession session)(Code)
Disassociates a Local Session from the Single Sign-on session since the Local Session was destroyed.
Parameters:
  session -



localSessionEvent
public void localSessionEvent(LocalSessionEvent event)(Code)
Acknowledge the occurrence of the specified event.
Parameters:
  event - SessionEvent that has occurred



log
abstract protected void log(String message)(Code)
Log a message on the Logger associated with our Container (if any).
Parameters:
  message - Message to be logged



log
abstract protected void log(String message, Throwable throwable)(Code)
Log a message on the Logger associated with our Container (if any).
Parameters:
  message - Message to be logged
Parameters:
  throwable - Associated exception



lookup
protected SingleSignOnEntry lookup(String ssoId)(Code)
Look up and return the cached SingleSignOn entry associated with this sso id value, if there is one; otherwise return null.
Parameters:
  ssoId - Single sign on identifier to look up



newJossoCookie
public Cookie newJossoCookie(String path, String value)(Code)
This creates a new JOSSO Cookie for the given path and value.
Parameters:
  path - the path associated with the cookie, normaly the partner application context.
Parameters:
  value - the SSO Session ID



processRequest
public SingleSignOnEntry processRequest(SSOAgentRequest request)(Code)
Authenticated a user session previously authenticated by the gateway.
Parameters:
  request - the JOSSO Agent request the logged user identity.



register
protected void register(String ssoId, Principal principal, String authType)(Code)
Register the specified Principal as being associated with the specified value for the single sign on identifier.
Parameters:
  ssoId - Single sign on identifier to register
Parameters:
  principal - Associated user principal that is identified
Parameters:
  authType - Authentication type used to authenticate thisuser principal



resolveAssertion
protected String resolveAssertion(String assertionId)(Code)
Dereference assertion id by invoking the corresponding operation using the back-channel
Parameters:
  assertionId - null if the authentication assertion is invalid



setConfiguration
public void setConfiguration(SSOAgentConfiguration cfg)(Code)



setDebug
public void setDebug(int debug)(Code)



setGatewayLoginErrorUrl
public void setGatewayLoginErrorUrl(String gatewayLoginErrorUrl)(Code)
Sets the Error Login Url of the Gateway.



setGatewayLoginUrl
public void setGatewayLoginUrl(String gatewayLoginUrl)(Code)
Sets the Login Form Url of the Gateway.



setGatewayLogoutUrl
public void setGatewayLogoutUrl(String gatewayLogoutUrl)(Code)
Sets the Logout Form Url of the Gateway.



setGatewayServiceLocator
public void setGatewayServiceLocator(GatewayServiceLocator gsl)(Code)
Configures the Gateway Service Locator to be used by the SSOAgent.
Parameters:
  gsl -



setSessionAccessMinInterval
public void setSessionAccessMinInterval(String v)(Code)
Used by the configuraiton, to set the session access min interval.



setSessionAccessMinInterval
public void setSessionAccessMinInterval(long sessionAccessMinInterval)(Code)
Sets the session access min interval.



setSinglePointOfAccess
public void setSinglePointOfAccess(String singlePointOfAccess)(Code)
Single Point of Access to the SSO infrastructure. Useful when working in N-Tier mode behind a reverse proxy or load balancer
Parameters:
  singlePointOfAccess -



start
public void start()(Code)
Starts the Agent.



stop
public void stop()(Code)
Stop the Agent.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.