Package ghidra.framework.remote
Interface GhidraServerHandle
- All Superinterfaces:
Remote
GhidraServerHandle provides access to a remote server.
This remote interface facilitates user login/authentication, providing
a more useful handle to the associated repository server.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringRMI registry binding name for the supported version of the remote GhidraServerHandle object.static final StringRMI registry binding name prefix for all versions of the remote GhidraServerHandle object.static final intDefault RMI base port for Ghidra Serverstatic final intThe server interface version that the server will use and is the maximum version that the client can operate with.static final StringMinimum version of Ghidra which utilized the current INTERFACE_VERSIONstatic final intThe minimum server interface version that the client can operate with. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckCompatibility(int serverInterfaceVersion) Check server interface compatibilityCallback[]Returns user authentication proxy object.getRepositoryServer(Subject user, Callback[] authCallbacks) Get a handle to the repository server.
-
Field Details
-
INTERFACE_VERSION
static final int INTERFACE_VERSIONThe server interface version that the server will use and is the maximum version that the client can operate with.- See Also:
-
MINIMUM_INTERFACE_VERSION
static final int MINIMUM_INTERFACE_VERSIONThe minimum server interface version that the client can operate with.- See Also:
-
MIN_GHIDRA_VERSION
Minimum version of Ghidra which utilized the current INTERFACE_VERSION- See Also:
-
DEFAULT_PORT
static final int DEFAULT_PORTDefault RMI base port for Ghidra Server- See Also:
-
BIND_NAME_PREFIX
RMI registry binding name prefix for all versions of the remote GhidraServerHandle object.- See Also:
-
BIND_NAME
RMI registry binding name for the supported version of the remote GhidraServerHandle object.- See Also:
-
-
Method Details
-
getAuthenticationCallbacks
Returns user authentication proxy object.- Returns:
- authentication callbacks which must be satisfied or null if authentication not required.
- Throws:
RemoteException
-
getRepositoryServer
RemoteRepositoryServerHandle getRepositoryServer(Subject user, Callback[] authCallbacks) throws LoginException, RemoteException Get a handle to the repository server.- Parameters:
user- user subject containing GhidraPrincipalauthCallbacks- valid authentication callback objects which have been satisfied, or null if server does not require authentication.- Returns:
- repository server handle.
- Throws:
LoginException- if user authentication failsRemoteException- See Also:
-
checkCompatibility
Check server interface compatibility- Parameters:
serverInterfaceVersion- client/server interface version- Throws:
RemoteException- See Also:
-