Class SubjectRetrievalInterceptor

java.lang.Object
org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message>
org.codice.ddf.cxf.client.interceptor.SubjectRetrievalInterceptor
All Implemented Interfaces:
javax.xml.ws.handler.Handler<org.apache.cxf.jaxws.context.WrappedMessageContext>, org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>, org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

public class SubjectRetrievalInterceptor extends org.apache.cxf.phase.AbstractPhaseInterceptor<org.apache.cxf.message.Message> implements javax.xml.ws.handler.Handler<org.apache.cxf.jaxws.context.WrappedMessageContext>
SubjectRetrievalInterceptor provides a implementation of AbstractPhaseInterceptor that stores the receivers subject in the header of the response with a key of ddf.security.Subject.
  • Constructor Details

    • SubjectRetrievalInterceptor

      public SubjectRetrievalInterceptor(ddf.security.service.SecurityManager securityManager)
  • Method Details

    • handleMessage

      public void handleMessage(org.apache.cxf.message.Message message) throws org.apache.cxf.interceptor.Fault
      Specified by:
      handleMessage in interface org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>
      Throws:
      org.apache.cxf.interceptor.Fault
    • handleMessage

      public boolean handleMessage(org.apache.cxf.jaxws.context.WrappedMessageContext context)
      Specified by:
      handleMessage in interface javax.xml.ws.handler.Handler<org.apache.cxf.jaxws.context.WrappedMessageContext>
    • handleFault

      public boolean handleFault(org.apache.cxf.jaxws.context.WrappedMessageContext context)
      Specified by:
      handleFault in interface javax.xml.ws.handler.Handler<org.apache.cxf.jaxws.context.WrappedMessageContext>
    • close

      public void close(javax.xml.ws.handler.MessageContext context)
      Specified by:
      close in interface javax.xml.ws.handler.Handler<org.apache.cxf.jaxws.context.WrappedMessageContext>