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 Summary
Constructors Constructor Description ReceivedTokenCallbackHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Integer>getSecurityPriorities()voidhandle(Callback[] callbacks)booleanisUseTransformedToken()voidsetSecurityPriorities(List<Integer> securityPriorities)voidsetUseTransformedToken(boolean useTransformedToken)Set whether to use the transformed token if it is available from a previous security result.protected booleanskipResult(Integer resultPriority, org.apache.wss4j.dom.engine.WSSecurityEngineResult result)
-
-
-
Method Detail
-
handle
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
- Specified by:
handlein interfaceCallbackHandler- Throws:
IOExceptionUnsupportedCallbackException
-
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
-
-