Interface AppClientContainer.Builder

  • All Known Implementing Classes:
    AppClientContainerBuilder
    Enclosing class:
    AppClientContainer

    public static interface AppClientContainer.Builder
    Prescribes the exposed behavior of ACC configuration that can be set up further, and can be used to newContainer an ACC.
    • Method Detail

      • getTargetServers

        org.glassfish.appclient.client.acc.config.TargetServer[] getTargetServers()
      • addMessageSecurityConfig

        AppClientContainer.Builder addMessageSecurityConfig​(org.glassfish.appclient.client.acc.config.MessageSecurityConfig msConfig)
        Adds an optional MessageSecurityConfig setting.
        Parameters:
        msConfig - the new MessageSecurityConfig
        Returns:
        the Builder instance
      • getMessageSecurityConfig

        List<org.glassfish.appclient.client.acc.config.MessageSecurityConfig> getMessageSecurityConfig()
      • authRealm

        AppClientContainer.Builder authRealm​(String className)
        Sets the optional authentication realm for the ACC.

        Each specific realm will determine which properties should be set in the Properties argument.

        Parameters:
        className - name of the class which implements the realm
        Returns:
        the Builder instance
      • getAuthRealm

        org.glassfish.appclient.client.acc.config.AuthRealm getAuthRealm()
      • clientCredentials

        AppClientContainer.Builder clientCredentials​(String user,
                                                     char[] password)
        Sets the optional client credentials to be used during authentication to the back-end.

        If the client does not invoke clientCredentials then the ACC will use a CallbackHandler when it discovers that authentication is required. See AppClientContainer.callerSuppliedCallbackHandler.

        Parameters:
        username - username valid in the default realm on the server
        password - password valid in the default realm on the server for the username
        Returns:
        the Builder instance
      • getClientCredential

        org.glassfish.appclient.client.acc.config.ClientCredential getClientCredential()
      • clientCredentials

        AppClientContainer.Builder clientCredentials​(String user,
                                                     char[] password,
                                                     String realm)
        Sets the optional client credentials and server-side realm to be used during authentication to the back-end.

        If the client does not invoke clientCredentials then the ACC will use a CallbackHandler when it discovers that authentication is required. See AppClientContainer.callerSuppliedCallbackHandler.

        Parameters:
        username - username valid in the specified realm on the server
        password - password valid in the specified realm on the server for the username
        realmName - name of the realm on the server within which the credentials are valid
        Returns:
        the Builder instance
      • containerProperties

        AppClientContainer.Builder containerProperties​(Properties containerProperties)
        Sets the container-level Properties.
        Parameters:
        containerProperties -
        Returns:
      • containerProperties

        AppClientContainer.Builder containerProperties​(List<org.glassfish.appclient.client.acc.config.Property> containerProperties)
        Sets the container-level properties.

        Typically used when setting the properties from the parsed XML config file.

        Parameters:
        containerProperties - Property objects to use in setting the properties
        Returns:
      • getContainerProperties

        Properties getContainerProperties()
        Returns the container-level Properties.
        Returns:
        container-level properties
      • getLogger

        Logger getLogger()
      • sendPassword

        AppClientContainer.Builder sendPassword​(boolean sendPassword)
        Sets whether the ACC should send the password to the server during authentication.
        Parameters:
        sendPassword -
        Returns:
      • getSendPassword

        boolean getSendPassword()