Class CrossTenancyRequestConfigurator

  • All Implemented Interfaces:
    ClientConfigurator

    public class CrossTenancyRequestConfigurator
    extends Object
    implements ClientConfigurator
    A configurator that causes the client to set the cross-tenancy request header.
    • Constructor Detail

      • CrossTenancyRequestConfigurator

        public CrossTenancyRequestConfigurator​(String[] authorizedTenancyIds)
        A configurator that sets the cross-tenancy request header, but otherwise behaves like the DefaultConnectorConfigurator.
        Parameters:
        authorizedTenancyIds - tenancy OCIDs that might be accessed by requests made by the client configured
      • CrossTenancyRequestConfigurator

        public CrossTenancyRequestConfigurator​(String[] authorizedTenancyIds,
                                               ClientConfigurator baseConfigurator)
        A configurator that sets the cross-tenancy request header, but otherwise behaves like the passed in configurator.
        Parameters:
        authorizedTenancyIds - tenancy OCIDs that might be accessed by requests made by the client configured
        baseConfigurator - base configurator
    • Method Detail

      • customizeClient

        public void customizeClient​(com.oracle.bmc.http.client.HttpClientBuilder builder)
        Specified by:
        customizeClient in interface ClientConfigurator