Interface SoapSTSInstanceLifecycleManager

  • All Known Implementing Classes:
    SoapSTSInstanceLifecycleManagerImpl

    public interface SoapSTSInstanceLifecycleManager
    This interface defines and encapsulates the concerns of consuming the cxf runtime to programmatically publish and destroy soap sts instances.
    • Method Detail

      • exposeSTSInstanceAsWebService

        org.apache.cxf.endpoint.Server exposeSTSInstanceAsWebService​(Map<String,​Object> webServiceProperties,
                                                                     org.apache.cxf.ws.security.sts.provider.SecurityTokenServiceProvider securityTokenServiceProvider,
                                                                     SoapSTSInstanceConfig stsInstanceConfig)
                                                              throws STSPublishException
        Parameters:
        webServiceProperties - The properties provided to the soap-sts instance. Obtained from the injector driven by a SoapSTSInstanceConfig instance. Defines things like the crypto context, and the validators plugged into the SecurityPolicy context.
        securityTokenServiceProvider - The actual implementation of the STS. Also obtained from the injector driven by SoapSTSInstanceConfig instance.
        stsInstanceConfig - The actual SoapSTSInstanceConfig corresponding to the to-be-published instance
        Returns:
        the cxf.endpoint.Server instance returned from the cxf web-service create invocation. Must be passed to the destorySTSInstance.
        Throws:
        STSPublishException - If the operation cannot be successfully completed.
      • destroySTSInstance

        void destroySTSInstance​(org.apache.cxf.endpoint.Server server)
                         throws STSPublishException
        Deletes the soap-sts web-service.
        Parameters:
        server - the instance returned by the corresponding exposeSTSInstanceAsWebService invocation.
        Throws:
        STSPublishException - If the operation cannot be successfully completed.