All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.vertx.kotlin.ext.shell.term.SSHTermOptions.kt Maven / Gradle / Ivy

There is a newer version: 5.0.0.CR1
Show newest version
/*
 * Copyright 2019 Red Hat, Inc.
 *
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * and Apache License v2.0 which accompanies this distribution.
 *
 * The Eclipse Public License is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * The Apache License v2.0 is available at
 * http://www.opensource.org/licenses/apache2.0.php
 *
 * You may elect to redistribute this code under either of these licenses.
 */
package io.vertx.kotlin.ext.shell.term

import io.vertx.ext.shell.term.SSHTermOptions
import io.vertx.core.net.JksOptions
import io.vertx.core.net.PemKeyCertOptions
import io.vertx.core.net.PfxOptions

/**
 * A function providing a DSL for building [io.vertx.ext.shell.term.SSHTermOptions] objects.
 *
 * The SSH term configuration options.
 *
 * @param host  Set the host
 * @param port  Set the port
 * @param keyPairOptions  Set the key pair options in jks format, aka Java keystore.
 * @param pfxKeyPairOptions  Set the key pair options in pfx format.
 * @param pemKeyPairOptions  Set the key pair store options in pem format.
 * @param authOptions  Set the auth options.
 * @param defaultCharset  Set the default charset to use when the client does not specifies one.
 * @param intputrc  The path of the inputrc config.
 *
 * 

* NOTE: This function has been automatically generated from the [io.vertx.ext.shell.term.SSHTermOptions original] using Vert.x codegen. */ fun sshTermOptionsOf( host: String? = null, port: Int? = null, keyPairOptions: io.vertx.core.net.JksOptions? = null, pfxKeyPairOptions: io.vertx.core.net.PfxOptions? = null, pemKeyPairOptions: io.vertx.core.net.PemKeyCertOptions? = null, authOptions: io.vertx.core.json.JsonObject? = null, defaultCharset: String? = null, intputrc: String? = null): SSHTermOptions = io.vertx.ext.shell.term.SSHTermOptions().apply { if (host != null) { this.setHost(host) } if (port != null) { this.setPort(port) } if (keyPairOptions != null) { this.setKeyPairOptions(keyPairOptions) } if (pfxKeyPairOptions != null) { this.setPfxKeyPairOptions(pfxKeyPairOptions) } if (pemKeyPairOptions != null) { this.setPemKeyPairOptions(pemKeyPairOptions) } if (authOptions != null) { this.setAuthOptions(authOptions) } if (defaultCharset != null) { this.setDefaultCharset(defaultCharset) } if (intputrc != null) { this.setIntputrc(intputrc) } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy