Class OSClientBuilder<R,​T extends IOSClientBuilder<R,​T>>

    • Constructor Detail

      • OSClientBuilder

        public OSClientBuilder()
    • Method Detail

      • withConfig

        public T withConfig​(Config config)
        Description copied from interface: IOSClientBuilder
        Associates the given configuration with this Client
        Specified by:
        withConfig in interface IOSClientBuilder<R,​T extends IOSClientBuilder<R,​T>>
        Parameters:
        config - OpenStack4j configuration options
        Returns:
        self for method chaining
      • credentials

        public T credentials​(String user,
                             String password)
        Description copied from interface: IOSClientBuilder
        The authentication credentials
        Specified by:
        credentials in interface IOSClientBuilder<R,​T extends IOSClientBuilder<R,​T>>
        Parameters:
        user - the user id to authenticate with
        password - the password to authenticate with
        Returns:
        self for method chaining
      • perspective

        public T perspective​(Facing perspective)
        Description copied from interface: IOSClientBuilder
        Allows for a specific network perspective to be used. For example to only use AdminURL Endpoints you would want to set the Facing.ADMIN as a facing perspective.

        NOTE: If you choose PUBLIC some features may not work that are normally admin based configuration/functionality. If you normally are not using these features PUBLIC works fine in most cases.

        Specified by:
        perspective in interface IOSClientBuilder<R,​T extends IOSClientBuilder<R,​T>>
        Parameters:
        perspective - the network facing perspective
        Returns:
        self for method chaining
      • useNonStrictSSLClient

        public T useNonStrictSSLClient​(boolean useNonStrictSSL)
        Description copied from interface: IOSClientBuilder
        DEPRECATED: Use #applyConfig(Config) to configure SSL policies

        In some private environments self signed certificates are used. If you are using HTTPS and using self-signed cerificates then set this to true. Otherwise the default strict hostname and properly signed validation based client will be used.

        Specified by:
        useNonStrictSSLClient in interface IOSClientBuilder<R,​T extends IOSClientBuilder<R,​T>>
        Parameters:
        useNonStrictSSL - true if an HTTPS self-signed environment
        Returns:
        self for method chaining