public class RemoteUtilities extends Object
| Modifier and Type | Method and Description |
|---|---|
static File |
getConfigDirectory()
The name of the directory used for storing configuration
information.
|
static File |
getConfigFile(String name)
Construct the proper name of a file stored in the configuration
directory.
|
static Object[] |
readContactFile(String appName)
Parse the contact file returning its contents as an Object array.
|
static String |
writeContactFile(int port,
String appName)
Write contact details to a file only readable by the owner
process and privileged local users.
|
public static String writeContactFile(int port, String appName)
These details are used to authenticate any requests.
The file contains the simple line:
hostname port_number cookie
The cookie is generated by this method and returned as its
result.port - the port number being used by a server process that
is listening for connections.public static Object[] readContactFile(String appName)
public static File getConfigDirectory()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.