Apache CXF API

org.apache.cxf.ws.security.trust
Class AuthPolicyValidatingInterceptor

java.lang.Object
  extended by org.apache.cxf.phase.AbstractPhaseInterceptor<Message>
      extended by org.apache.cxf.ws.security.trust.AuthPolicyValidatingInterceptor
All Implemented Interfaces:
Interceptor<Message>, PhaseInterceptor<Message>

public class AuthPolicyValidatingInterceptor
extends AbstractPhaseInterceptor<Message>


Constructor Summary
AuthPolicyValidatingInterceptor()
           
AuthPolicyValidatingInterceptor(String phase)
           
 
Method Summary
protected  org.apache.wss4j.dom.message.token.UsernameToken convertPolicyToToken(AuthorizationPolicy policy)
           
protected  SecurityContext createSecurityContext(Principal p)
           
 void handleMessage(Message message)
          Intercepts a message.
 void setValidator(org.apache.wss4j.dom.validate.Validator validator)
           
 
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

AuthPolicyValidatingInterceptor

public AuthPolicyValidatingInterceptor()

AuthPolicyValidatingInterceptor

public AuthPolicyValidatingInterceptor(String phase)
Method Detail

handleMessage

public void handleMessage(Message message)
                   throws Fault
Description copied from interface: Interceptor
Intercepts a message. Interceptors should NOT invoke handleMessage or handleFault on the next interceptor - the interceptor chain will take care of this.

Throws:
Fault

convertPolicyToToken

protected org.apache.wss4j.dom.message.token.UsernameToken convertPolicyToToken(AuthorizationPolicy policy)
                                                                         throws Exception
Throws:
Exception

createSecurityContext

protected SecurityContext createSecurityContext(Principal p)

setValidator

public void setValidator(org.apache.wss4j.dom.validate.Validator validator)

Apache CXF API

Apache CXF