org.apache.cxf.ws.security.policy.interceptors
Class NegotiationUtils

java.lang.Object
  extended by org.apache.cxf.ws.security.policy.interceptors.NegotiationUtils

public final class NegotiationUtils
extends Object

This is a collection of utility methods for use in negotiation exchanges such as WS-SecureConversation and WS-Trust for SPNEGO.


Method Summary
static org.apache.neethi.Assertion getAddressingPolicy(org.apache.cxf.ws.policy.AssertionInfoMap aim, boolean optional)
           
static AlgorithmSuite getAlgorithmSuite(org.apache.cxf.ws.policy.AssertionInfoMap aim)
           
static CallbackHandler getCallbackHandler(Object o, Class<?> clazz)
           
static TokenStore getTokenStore(org.apache.cxf.message.Message message)
           
static TokenStore getTokenStore(org.apache.cxf.message.Message message, boolean create)
           
static Trust10 getTrust10(org.apache.cxf.ws.policy.AssertionInfoMap aim)
           
static Trust13 getTrust13(org.apache.cxf.ws.policy.AssertionInfoMap aim)
           
static int getWSCVersion(String tokenTypeValue)
           
static boolean parseSCTResult(org.apache.cxf.binding.soap.SoapMessage message)
          Return true on successfully parsing a SecurityContextToken result
static void recalcEffectivePolicy(org.apache.cxf.binding.soap.SoapMessage message, String namespace, org.apache.neethi.Policy policy, org.apache.cxf.service.invoker.Invoker invoker, boolean secConv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTrust10

public static Trust10 getTrust10(org.apache.cxf.ws.policy.AssertionInfoMap aim)

getTrust13

public static Trust13 getTrust13(org.apache.cxf.ws.policy.AssertionInfoMap aim)

getTokenStore

public static TokenStore getTokenStore(org.apache.cxf.message.Message message)

getTokenStore

public static TokenStore getTokenStore(org.apache.cxf.message.Message message,
                                       boolean create)

getAddressingPolicy

public static org.apache.neethi.Assertion getAddressingPolicy(org.apache.cxf.ws.policy.AssertionInfoMap aim,
                                                              boolean optional)

getAlgorithmSuite

public static AlgorithmSuite getAlgorithmSuite(org.apache.cxf.ws.policy.AssertionInfoMap aim)

getWSCVersion

public static int getWSCVersion(String tokenTypeValue)
                         throws org.apache.ws.security.conversation.ConversationException
Throws:
org.apache.ws.security.conversation.ConversationException

recalcEffectivePolicy

public static void recalcEffectivePolicy(org.apache.cxf.binding.soap.SoapMessage message,
                                         String namespace,
                                         org.apache.neethi.Policy policy,
                                         org.apache.cxf.service.invoker.Invoker invoker,
                                         boolean secConv)

parseSCTResult

public static boolean parseSCTResult(org.apache.cxf.binding.soap.SoapMessage message)
Return true on successfully parsing a SecurityContextToken result


getCallbackHandler

public static CallbackHandler getCallbackHandler(Object o,
                                                 Class<?> clazz)


Apache CXF