org.apache.jetspeed.security.impl
Class SecurityValveImpl

java.lang.Object
  extended by org.apache.jetspeed.pipeline.valve.AbstractValve
      extended by org.apache.jetspeed.security.impl.AbstractSecurityValve
          extended by org.apache.jetspeed.security.impl.SecurityValveImpl
All Implemented Interfaces:
SecurityValve, Valve

public class SecurityValveImpl
extends AbstractSecurityValve
implements SecurityValve

SecurityValve

Version:
$Id: SecurityValveImpl.java 544250 2007-06-04 20:30:43Z taylor $
Author:
David Sean Taylor , Randy Walter , Scott T. Weaver

Field Summary
 
Fields inherited from class org.apache.jetspeed.security.impl.AbstractSecurityValve
authenticationConfiguration
 
Fields inherited from interface org.apache.jetspeed.pipeline.valve.SecurityValve
IP_ADDRESS
 
Constructor Summary
SecurityValveImpl(Profiler profiler, UserManager userMgr)
           
SecurityValveImpl(Profiler profiler, UserManager userMgr, PortalStatistics statistics)
           
SecurityValveImpl(Profiler profiler, UserManager userMgr, PortalStatistics statistics, PortalAuthenticationConfiguration authenticationConfiguration)
           
 
Method Summary
protected  javax.security.auth.Subject getSubject(RequestContext request)
           getSubject
protected  java.security.Principal getUserPrincipal(RequestContext request)
           getUserPrincipal
 java.lang.String toString()
           
 
Methods inherited from class org.apache.jetspeed.security.impl.AbstractSecurityValve
getSubjectFromSession, invoke, isSessionExpired
 
Methods inherited from class org.apache.jetspeed.pipeline.valve.AbstractValve
initialize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.pipeline.valve.Valve
initialize, invoke
 

Constructor Detail

SecurityValveImpl

public SecurityValveImpl(Profiler profiler,
                         UserManager userMgr,
                         PortalStatistics statistics,
                         PortalAuthenticationConfiguration authenticationConfiguration)

SecurityValveImpl

public SecurityValveImpl(Profiler profiler,
                         UserManager userMgr,
                         PortalStatistics statistics)

SecurityValveImpl

public SecurityValveImpl(Profiler profiler,
                         UserManager userMgr)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getSubject

protected final javax.security.auth.Subject getSubject(RequestContext request)
                                                throws java.lang.Exception

getSubject

Check for previously established session subject and invalidate if subject and current user principals do not match

Specified by:
getSubject in class AbstractSecurityValve
Parameters:
request -
Returns:
Throws:
java.lang.Exception

getUserPrincipal

protected java.security.Principal getUserPrincipal(RequestContext request)
                                            throws java.lang.Exception

getUserPrincipal

Aaccess request user principal if defined or default to profiler anonymous user

Specified by:
getUserPrincipal in class AbstractSecurityValve
Parameters:
request -
Returns:
Throws:
java.lang.Exception


Copyright © 1999-2010 Apache Software Foundation. All Rights Reserved.