Package io.jans.net

Class InetAddressUtility

java.lang.Object
io.jans.net.InetAddressUtility

public final class InetAddressUtility extends Object
Author:
Yuriy Movchan Date: 05/20/2015
  • Method Details

    • isIpAddress

      public static boolean isIpAddress(String ipAddress)
      Determine if the given string is a valid IPv4 or IPv6 address
    • getMACAddressOrNull

      public static String getMACAddressOrNull()
    • getIpAddress

      public static String getIpAddress(jakarta.servlet.http.HttpServletRequest httpRequest)
      Parameters:
      httpRequest - interface to provide request information for HTTP servlets.
      Returns:
      IP address of client
      See Also: