Platform-specific methods. More...
Public Member Functions | |
| boolean | getIsMobile () |
| Gets a value indicating whether this is a mobile platform. More... | |
| void | setIsMobile (boolean isMobile) |
| Sets a value indicating whether this is a mobile platform. More... | |
| boolean | getIsLittleEndian () |
| Gets a value indicating whether this is little-endian platform. More... | |
| OperatingSystem | getOperatingSystem () |
| Gets the current operating system. More... | |
| String | getOperatingSystemVersion () |
| Gets the operating system version and SDK version if applicable. More... | |
| String | getDirectorySeparator () |
| Gets the character used to separate directories. More... | |
| SourceLanguage | getSourceLanguage () |
| Gets the current programming language for the source code. More... | |
| int | getProcessId () |
| Gets the id of the current process. More... | |
| PlatformType | getType () |
| Gets the current PlatformType. More... | |
| String | getPlatformTypeVersion () |
| Gets the current platform type version. More... | |
| String | toString (boolean isVerbose) |
| Gets the string representation of the PlatformType and Version, if isVerbose is true the OS and OS version are included as well. More... | |
| Architecture | getArchitecture () |
| Gets the current CPU architecture. More... | |
| int | getCoreCount () |
| Gets the current CPU core count. More... | |
| long | getPhysicalMemory () |
| Gets the current physical memory in bytes. More... | |
| String | getMachineName () |
| Gets the current machine name. More... | |
| boolean | getUseFipsAlgorithms () |
| Gets a value that indicates whether FIPS algorithms should be used. More... | |
| void | setUseFipsAlgorithms (boolean useFipsAlgorithms) |
| Sets a value that indicates whether FIPS algorithms should be used. More... | |
| CryptoLibrary | getCryptoLibrary () |
| Gets the cryptography library to use. More... | |
| void | setCryptoLibrary (CryptoLibrary cryptoLibrary) |
Public Member Functions inherited from fm.liveswitch.IPlatform | |
| abstract void | setCryptoLibrary (fm.liveswitch.CryptoLibrary value) |
| Sets the cryptography library to use. More... | |
Static Public Member Functions | |
| static IPlatform | getInstance () |
Platform-specific methods.
| Architecture fm.liveswitch.Platform.getArchitecture | ( | ) |
Gets the current CPU architecture.
Implements fm.liveswitch.IPlatform.
| int fm.liveswitch.Platform.getCoreCount | ( | ) |
Gets the current CPU core count.
Implements fm.liveswitch.IPlatform.
| CryptoLibrary fm.liveswitch.Platform.getCryptoLibrary | ( | ) |
Gets the cryptography library to use.
Implements fm.liveswitch.IPlatform.
| String fm.liveswitch.Platform.getDirectorySeparator | ( | ) |
Gets the character used to separate directories.
Implements fm.liveswitch.IPlatform.
|
static |
| boolean fm.liveswitch.Platform.getIsLittleEndian | ( | ) |
Gets a value indicating whether this is little-endian platform.
Implements fm.liveswitch.IPlatform.
| boolean fm.liveswitch.Platform.getIsMobile | ( | ) |
Gets a value indicating whether this is a mobile platform.
Implements fm.liveswitch.IPlatform.
| String fm.liveswitch.Platform.getMachineName | ( | ) |
Gets the current machine name.
Implements fm.liveswitch.IPlatform.
| OperatingSystem fm.liveswitch.Platform.getOperatingSystem | ( | ) |
Gets the current operating system.
Implements fm.liveswitch.IPlatform.
| String fm.liveswitch.Platform.getOperatingSystemVersion | ( | ) |
Gets the operating system version and SDK version if applicable.
Implements fm.liveswitch.IPlatform.
| long fm.liveswitch.Platform.getPhysicalMemory | ( | ) |
Gets the current physical memory in bytes.
Implements fm.liveswitch.IPlatform.
| String fm.liveswitch.Platform.getPlatformTypeVersion | ( | ) |
Gets the current platform type version.
Implements fm.liveswitch.IPlatform.
| int fm.liveswitch.Platform.getProcessId | ( | ) |
Gets the id of the current process.
Implements fm.liveswitch.IPlatform.
| SourceLanguage fm.liveswitch.Platform.getSourceLanguage | ( | ) |
Gets the current programming language for the source code.
Implements fm.liveswitch.IPlatform.
| PlatformType fm.liveswitch.Platform.getType | ( | ) |
Gets the current PlatformType.
Implements fm.liveswitch.IPlatform.
| boolean fm.liveswitch.Platform.getUseFipsAlgorithms | ( | ) |
Gets a value that indicates whether FIPS algorithms should be used.
Note that not all platforms or third-party libraries are FIPS-compliant, so this should not be used as a guarantee of FIPS compliance.
Implements fm.liveswitch.IPlatform.
| void fm.liveswitch.Platform.setCryptoLibrary | ( | CryptoLibrary | cryptoLibrary | ) |
| void fm.liveswitch.Platform.setIsMobile | ( | boolean | isMobile | ) |
Sets a value indicating whether this is a mobile platform.
Implements fm.liveswitch.IPlatform.
| void fm.liveswitch.Platform.setUseFipsAlgorithms | ( | boolean | value | ) |
Sets a value that indicates whether FIPS algorithms should be used.
Note that not all platforms or third-party libraries are FIPS-compliant, so this should not be used as a guarantee of FIPS compliance.
Implements fm.liveswitch.IPlatform.
| String fm.liveswitch.Platform.toString | ( | boolean | isVerbose | ) |
Gets the string representation of the PlatformType and Version, if isVerbose is true the OS and OS version are included as well.
Implements fm.liveswitch.IPlatform.