Class SystemInfo
java.lang.Object
com.serinity.accesscontrol.util.SystemInfo
System information class
Funcionalies:
getJavafxVersion()- Return the current javafx versiongetJavaVersion()- Return the current java versiongetPrivateIpAddress()- Return user up interface private ip address (not localhost)getMacAddress()- Return user up interface mac address
- Since:
- 2026-01-28 SystemInfo.java
- Version:
- 1.0
- Author:
- @ZouariOmar (zouariomar20@gmail.com)
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringReturns the current JavaFX runtime version.static StringReturns the current Java runtime version.static StringGets the MAC address of the first active network interface.static StringGets the first active non-loopback IPv4 address of the machine.
-
Method Details
-
getJavaVersion
Returns the current Java runtime version.- Returns:
- Java version string
-
getJavafxVersion
Returns the current JavaFX runtime version.- Returns:
- JavaFX version string
-
getPrivateIpAddress
Gets the first active non-loopback IPv4 address of the machine.- Returns:
- private IPv4 address, or
"unknown"when unavailable
-
getMacAddress
Gets the MAC address of the first active network interface.Source: https://stackoverflow.com/a/30879040
- Returns:
- MAC address, or
"unknown"when unavailable
-