Class ReceivedTokenCallbackHandler

java.lang.Object
org.apache.cxf.ws.security.trust.delegation.ReceivedTokenCallbackHandler
All Implemented Interfaces:
CallbackHandler

public class ReceivedTokenCallbackHandler extends Object implements CallbackHandler
This CallbackHandler implementation obtains the previously received message from a DelegationCallback object, and obtains a received token (SAML/UsernameToken/BinarySecurityToken) from it to be used as the delegation token.
  • Constructor Details

    • ReceivedTokenCallbackHandler

      public ReceivedTokenCallbackHandler()
  • Method Details

    • handle

      public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
      Specified by:
      handle in interface CallbackHandler
      Throws:
      IOException
      UnsupportedCallbackException
    • skipResult

      protected boolean skipResult(Integer resultPriority, org.apache.wss4j.dom.engine.WSSecurityEngineResult result)
    • isUseTransformedToken

      public boolean isUseTransformedToken()
    • setUseTransformedToken

      public void setUseTransformedToken(boolean useTransformedToken)
      Set whether to use the transformed token if it is available from a previous security result. It false, it uses the original "received" token instead. The default is "true".
      Parameters:
      useTransformedToken - whether to use the transformed token if it is available
    • getSecurityPriorities

      public List<Integer> getSecurityPriorities()
    • setSecurityPriorities

      public void setSecurityPriorities(List<Integer> securityPriorities)