java.lang.Object
com.itemis.jscdlib.discovery.JScdEnvSocketDiscovery
- All Implemented Interfaces:
JScdSocketDiscovery
Use the environment to discover scdaemon's socket file path.
System properties have priority over environment variables, i. e. if both are available, the system property wins.
Supported values:
- System property "jscdlib.socket.file" - Absolute path to socket file
- Environment variable "GNUPGHOME" - Will be appended with "S.scdaemon" to form a path to a probable socket file.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
JSCDLIB_SOCKET_FILE_PROP_KEY
System property that must hold the absolute path to the socket file. SupersedesGNUPGHOME_ENV_KEY.- See Also:
-
GNUPGHOME_ENV_KEY
Name of environment variable that holds the path to the GPG installation root. Is superseded byJSCDLIB_SOCKET_FILE_PROP_KEY- See Also:
-
SOCKET_FILE_NAME
Expected default name of scdaemon's socket file.- See Also:
-
-
Constructor Details
-
JScdEnvSocketDiscovery
public JScdEnvSocketDiscovery()
-
-
Method Details
-
discover
- Specified by:
discoverin interfaceJScdSocketDiscovery- Returns:
- A valid
Pathto scdaemon's socket file.
-