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

com.quorum.tessera.ssl.util.HostnameUtil Maven / Gradle / Ivy

Go to download

Tessera is a stateless Java system that is used to enable the encryption, decryption, and distribution of private transactions for Quorum.

There is a newer version: 24.4.2
Show newest version
package com.quorum.tessera.ssl.util;

import java.net.InetAddress;
import java.net.UnknownHostException;

public interface HostnameUtil {

  default String getHostName() throws UnknownHostException {
    return InetAddress.getLocalHost().getHostName();
  }

  default String getHostIpAddress() throws UnknownHostException {
    return InetAddress.getLocalHost().getHostAddress();
  }

  static HostnameUtil create() {
    return new HostnameUtil() {};
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy