org.apache.cxf.interceptor.security
Class AbstractSecurityContextInInterceptor

java.lang.Object
  extended by org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
      extended by org.apache.cxf.interceptor.security.AbstractSecurityContextInInterceptor
All Implemented Interfaces:
org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>, org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>
Direct Known Subclasses:
AbstractUsernameTokenInInterceptor

public abstract class AbstractSecurityContextInInterceptor
extends org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>


Constructor Summary
AbstractSecurityContextInInterceptor()
           
 
Method Summary
protected  org.apache.cxf.security.SecurityContext createSecurityContext(Principal p, Subject subject)
           
protected abstract  Subject createSubject(org.apache.cxf.common.security.SecurityToken token)
           
protected  Principal getPrincipal(Principal originalPrincipal, Subject subject)
           
 void handleMessage(org.apache.cxf.message.Message message)
           
protected  void reportSecurityException(String errorMessage)
           
 
Methods inherited from class org.apache.cxf.phase.AbstractPhaseInterceptor
addAfter, addAfter, addBefore, addBefore, getAdditionalInterceptors, getAfter, getBefore, getId, getPhase, handleFault, isGET, isRequestor, setAfter, setBefore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSecurityContextInInterceptor

public AbstractSecurityContextInInterceptor()
Method Detail

handleMessage

public void handleMessage(org.apache.cxf.message.Message message)
                   throws org.apache.cxf.interceptor.Fault
Throws:
org.apache.cxf.interceptor.Fault

getPrincipal

protected Principal getPrincipal(Principal originalPrincipal,
                                 Subject subject)

createSecurityContext

protected org.apache.cxf.security.SecurityContext createSecurityContext(Principal p,
                                                                        Subject subject)

createSubject

protected abstract Subject createSubject(org.apache.cxf.common.security.SecurityToken token)

reportSecurityException

protected void reportSecurityException(String errorMessage)


Apache CXF