Package ghidra.framework.remote
Interface RemoteRepositoryServerHandle
- All Superinterfaces:
Remote,RepositoryServerHandle
RepositoryServerHandle provides access to a remote repository server via RMI.
IMPORTANT: Methods from RepositoryServerHandle must be re-declared here
so they may be properly marshalled for remote invocation via RMI.
This became neccessary with an OpenJDK 11.0.6 change made to
RemoteObjectInvocationHandler.
-
Method Summary
ChangeModifier and TypeMethodDescriptionMODIFIEDbooleanMODIFIEDbooleanReturns true if the user's password can be changed.MODIFIEDvoidVerify that server is alive and connected.createRepository(String name) Create a new repository on the server.voiddeleteRepository(String name) Delete a repository.MODIFIEDString[]Returns a list of all known users.MODIFIEDlongReturns the amount of time in milliseconds until the user's password will expire.getRepository(String name) Get a handle to an existing repository.MODIFIEDString[]Returns a list of all repository names which are accessable by the current user.MODIFIEDgetUser()Returns current user for which this handle belongs.MODIFIEDbooleanbooleansetPassword(char[] saltedSHA256PasswordHash) Set the password for the user.
-
Method Details
-
anonymousAccessAllowed MODIFIED
added throws RemoteException; removed throws IOException-boolean anonymousAccessAllowed() throws IOException+boolean anonymousAccessAllowed() throws RemoteException- Specified by:
anonymousAccessAllowedin interfaceRepositoryServerHandle- Returns:
- true if server allows anonymous access. Individual repositories must grant anonymous access separately.
- Throws:
RemoteExceptionIOException(removed)
-
isReadOnly MODIFIED
added throws RemoteException; removed throws IOException-boolean isReadOnly() throws IOException+boolean isReadOnly() throws RemoteException- Specified by:
isReadOnlyin interfaceRepositoryServerHandle- Returns:
- true if user has restricted read-only access to server (e.g., anonymous user)
- Throws:
RemoteExceptionIOException(removed)
-
createRepository
Description copied from interface:RepositoryServerHandleCreate a new repository on the server. The newly created RepositoryHandle will contain a unique project ID for the client.- Specified by:
createRepositoryin interfaceRepositoryServerHandle- Parameters:
name- repository name. This ID will be used to identify and maintain checkout data.- Returns:
- handle to new repository.
- Throws:
IOException- if an IO error occurs
-
getRepository
Description copied from interface:RepositoryServerHandleGet a handle to an existing repository.- Specified by:
getRepositoryin interfaceRepositoryServerHandle- Parameters:
name- repository name.- Returns:
- repository handle or null if repository does not exist.
- Throws:
IOException- if an IO error occurs
-
deleteRepository
Description copied from interface:RepositoryServerHandleDelete a repository.- Specified by:
deleteRepositoryin interfaceRepositoryServerHandle- Parameters:
name- repository name.- Throws:
IOException- if an IO error occurs
-
getRepositoryNames MODIFIED
added throws RemoteException; removed throws IOException-java.lang.String[] getRepositoryNames() throws IOException+java.lang.String[] getRepositoryNames() throws RemoteExceptionDescription copied from interface:RepositoryServerHandleReturns a list of all repository names which are accessable by the current user.- Specified by:
getRepositoryNamesin interfaceRepositoryServerHandle- Throws:
RemoteExceptionIOException(removed)
-
getUser MODIFIED
added throws RemoteException; removed throws IOException-java.lang.String getUser() throws IOException+java.lang.String getUser() throws RemoteExceptionDescription copied from interface:RepositoryServerHandleReturns current user for which this handle belongs.- Specified by:
getUserin interfaceRepositoryServerHandle- Throws:
RemoteExceptionIOException(removed)
-
getAllUsers MODIFIED
added throws RemoteException; removed throws IOException-java.lang.String[] getAllUsers() throws IOException+java.lang.String[] getAllUsers() throws RemoteExceptionDescription copied from interface:RepositoryServerHandleReturns a list of all known users.- Specified by:
getAllUsersin interfaceRepositoryServerHandle- Throws:
RemoteExceptionIOException(removed)
-
canSetPassword MODIFIED
added throws RemoteException; removed throws IOException-boolean canSetPassword() throws IOException+boolean canSetPassword() throws RemoteExceptionDescription copied from interface:RepositoryServerHandleReturns true if the user's password can be changed.- Specified by:
canSetPasswordin interfaceRepositoryServerHandle- Throws:
RemoteExceptionIOException(removed)
-
getPasswordExpiration MODIFIED
added throws RemoteException; removed throws IOException-long getPasswordExpiration() throws IOException+long getPasswordExpiration() throws RemoteExceptionDescription copied from interface:RepositoryServerHandleReturns the amount of time in milliseconds until the user's password will expire.- Specified by:
getPasswordExpirationin interfaceRepositoryServerHandle- Returns:
- time until expiration or -1 if it will not expire
- Throws:
RemoteExceptionIOException(removed)
-
setPassword
Description copied from interface:RepositoryServerHandleSet the password for the user.- Specified by:
setPasswordin interfaceRepositoryServerHandle- Parameters:
saltedSHA256PasswordHash- SHA256 salted password hash- Returns:
- true if password changed
- Throws:
IOException- if an IO error occurs- See Also:
-
connected MODIFIED
added throws RemoteException; removed throws IOException-void connected() throws IOException+void connected() throws RemoteExceptionDescription copied from interface:RepositoryServerHandleVerify that server is alive and connected.- Specified by:
connectedin interfaceRepositoryServerHandle- Throws:
RemoteExceptionIOException(removed)
-