Class ReceivedTokenCallbackHandler
java.lang.Object
org.apache.cxf.ws.security.trust.delegation.ReceivedTokenCallbackHandler
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanvoidsetSecurityPriorities(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)
-
Constructor Details
-
ReceivedTokenCallbackHandler
public ReceivedTokenCallbackHandler()
-
-
Method Details
-
handle
- 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
-
getSecurityPriorities
-
setSecurityPriorities
-