Class WSSPolicyManager


  • public class WSSPolicyManager
    extends Object
    The WSSPolicyManager class manages the WS-Security policy configuration and is used to convert from ProviderConfig to WS-Security Policy and vice versa.
    • Method Detail

      • getPolicy

        public String getPolicy​(ProviderConfig providerConfig)
                         throws WSSPolicyException
        Returns the web service end point policy based on the provider configuration.
        Parameters:
        providerConfig - the provider configuration for a given provider configuration.
        Returns:
        the XML String representation of ws-security policy.
        Throws:
        WSSPolicyException
      • getInputPolicy

        public String getInputPolicy​(ProviderConfig providerConfig)
                              throws WSSPolicyException
        Returns the input policy for the given web service provider configuration.
        Parameters:
        providerConfig - the provider configuration of a web service provider.
        Returns:
        the XML String representation for the web service provider input policy.
        Throws:
        WSSPolicyException
      • getOutputPolicy

        public String getOutputPolicy​(ProviderConfig providerConfig)
                               throws WSSPolicyException
        Returns the output policy for the given web service provider configuration.
        Parameters:
        providerConfig - the provider configuration of a web service provider.
        Returns:
        the XML String representation of ws-security policy for the web service provider.
        Throws:
        WSSPolicyException
      • getSTSPolicy

        public String getSTSPolicy()
                            throws WSSPolicyException
        Returns the STS end point policy
        Returns:
        the XML String representation of ws-security policy for the STS service.
        Throws:
        WSSPolicyException
      • getSTSInputPolicy

        public String getSTSInputPolicy()
                                 throws WSSPolicyException
        Returns the input policy for the STS service
        Returns:
        the XML String representation of ws-security policy for the STS service.
        Throws:
        WSSPolicyException
      • getSTSOutputPolicy

        public String getSTSOutputPolicy()
                                  throws WSSPolicyException
        Returns the output policy for the STS service
        Returns:
        the XML String representation of ws-security policy for the STS service.
        Throws:
        WSSPolicyException