com.quorum.tessera.ssl.util.HostnameUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of security Show documentation
Show all versions of security Show documentation
Tessera is a stateless Java system that is used to enable the encryption, decryption, and distribution of private transactions for Quorum.
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