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

net.dona.doip.client.transport.ConnectionOptions Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package net.dona.doip.client.transport;

import java.security.PrivateKey;
import java.security.PublicKey;
import java.util.List;

/**
 * Options for a connection to a DOIP server.
 */
public class ConnectionOptions {

    /**
     * The IP address of the DOIP server.
     */
    public String address;

    /**
     * The port of the DOIP server.
     */
    public int port;

    /**
     * Connection timeout in ms.
     */
    public Integer connectTimeoutMs;

    /**
     * Read timeout in ms.
     */
    public Integer readTimeoutMs;

    /**
     * The identifier of the server; if present {@link #trustedServerPublicKeys} should also be provided.
     */
    public String serverId;

    /**
     * A list of public keys that will be trusted for this server.
     */
    public List trustedServerPublicKeys;

    /**
     * The identifier for the client; if present, will be used along with {@link #clientPublicKey} and {@link #clientPrivateKey}
     * to produce a client-side TLS certificate to be used for the connection.
     */
    public String clientId;
    public PublicKey clientPublicKey;
    public PrivateKey clientPrivateKey;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy