|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jetspeed.pipeline.valve.AbstractValve
org.apache.jetspeed.security.impl.AbstractSecurityValve
AbstractSecurityValve
| Constructor Summary | |
AbstractSecurityValve()
|
|
| Method Summary | |
protected abstract Subject |
getSubject(org.apache.jetspeed.request.RequestContext request)
getSubject |
protected Subject |
getSubjectFromSession(org.apache.jetspeed.request.RequestContext request)
getSubjectFromSession |
protected abstract Principal |
getUserPrincipal(org.apache.jetspeed.request.RequestContext request)
getUserPrincipal |
void |
invoke(org.apache.jetspeed.request.RequestContext request,
ValveContext context)
invoke |
| 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, toString, wait, wait, wait |
| Methods inherited from interface org.apache.jetspeed.pipeline.valve.Valve |
initialize |
| Constructor Detail |
public AbstractSecurityValve()
| Method Detail |
protected abstract Subject getSubject(org.apache.jetspeed.request.RequestContext request)
throws Exception
getSubject
Should build and return ajavax.security.Subject
request -
Exception
protected abstract Principal getUserPrincipal(org.apache.jetspeed.request.RequestContext request)
throws Exception
getUserPrincipal
Should build and return ajava.security.Principal that represents the user name
the Subject returned from getSubject()
request -
Exception
protected final Subject getSubjectFromSession(org.apache.jetspeed.request.RequestContext request)
throws Exception
getSubjectFromSession
request -
null if there is no servlet session attribute defined
for the key org.apache.jetspeed.PortalReservedParameters.SESSION_KEY_SUBJECT.
Exception
public void invoke(org.apache.jetspeed.request.RequestContext request,
ValveContext context)
throws PipelineException
invoke
Uses getSubject() to call ValveContext.invokeNext() via
Subject.doAsPrivileged(). This method also takes care of setting the value of
the RequestContext.subject property and the session attribute
org.apache.jetspeed.PortalReservedParameters.SESSION_KEY_SUBJECT
invoke in interface Valveinvoke in class AbstractValverequest - context -
PipelineException - if the is an error encountered during any security operations.Valve.invoke(org.apache.jetspeed.request.RequestContext, org.apache.jetspeed.pipeline.valve.ValveContext)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||