Package ghidra.framework.remote
Interface RemoteRepositoryServerHandle
-
- All Superinterfaces:
java.rmi.Remote,RepositoryServerHandle
public interface RemoteRepositoryServerHandle extends RepositoryServerHandle, java.rmi.Remote
RepositoryServerHandleprovides access to a remote repository server via RMI.Methods from
RepositoryServerHandlemust 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 toRemoteObjectInvocationHandler.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Change Modifier and Type Method Description NEW booleananonymousAccessAllowed()NEW booleancanSetPassword()Returns true if the user's password can be changed.NEW voidconnected()Verify that server is alive and connected.NEW RepositoryHandlecreateRepository(java.lang.String name)Create a new repository on the server.NEW voiddeleteRepository(java.lang.String name)Delete a repository.NEW java.lang.String[]getAllUsers()Returns a list of all known users.NEW longgetPasswordExpiration()Returns the amount of time in milliseconds until the user's password will expire.NEW RepositoryHandlegetRepository(java.lang.String name)Get a handle to an existing repository.NEW java.lang.String[]getRepositoryNames()Returns a list of all repository names which are accessable by the current user.NEW java.lang.StringgetUser()Returns current user for which this handle belongs.NEW booleanisReadOnly()booleansetPassword(char[] saltedSHA256PasswordHash)Set the password for the user.
-
-
-
Method Detail
-
anonymousAccessAllowed NEW
boolean anonymousAccessAllowed() throws java.io.IOException- Specified by:
anonymousAccessAllowedin interfaceRepositoryServerHandle- Throws:
java.io.IOException- if an IO error occurs
-
isReadOnly NEW
boolean isReadOnly() throws java.io.IOException- Specified by:
isReadOnlyin interfaceRepositoryServerHandle- Throws:
java.io.IOException- if an IO error occurs
-
createRepository NEW
RepositoryHandle createRepository(java.lang.String name) throws java.io.IOException
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:
DuplicateFileExceptionUserAccessExceptionjava.io.IOException- if an IO error occurs
-
getRepository NEW
RepositoryHandle getRepository(java.lang.String name) throws java.io.IOException
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:
UserAccessException- if user does not have permission to access repositoryjava.io.IOException- if an IO error occurs
-
deleteRepository NEW
void deleteRepository(java.lang.String name) throws java.io.IOExceptionDescription copied from interface:RepositoryServerHandleDelete a repository.- Specified by:
deleteRepositoryin interfaceRepositoryServerHandle- Parameters:
name- repository name.- Throws:
UserAccessException- if user does not have permission to delete repositoryjava.io.IOException- if an IO error occurs
-
getRepositoryNames NEW
java.lang.String[] getRepositoryNames() throws java.io.IOExceptionDescription copied from interface:RepositoryServerHandleReturns a list of all repository names which are accessable by the current user.- Specified by:
getRepositoryNamesin interfaceRepositoryServerHandle- Throws:
java.io.IOException- if an IO error occurs
-
getUser NEW
java.lang.String getUser() throws java.io.IOExceptionDescription copied from interface:RepositoryServerHandleReturns current user for which this handle belongs.- Specified by:
getUserin interfaceRepositoryServerHandle- Throws:
java.io.IOException- if an IO error occurs
-
getAllUsers NEW
java.lang.String[] getAllUsers() throws java.io.IOExceptionDescription copied from interface:RepositoryServerHandleReturns a list of all known users.- Specified by:
getAllUsersin interfaceRepositoryServerHandle- Throws:
java.io.IOException- if an IO error occurs
-
canSetPassword NEW
boolean canSetPassword() throws java.io.IOExceptionDescription copied from interface:RepositoryServerHandleReturns true if the user's password can be changed.- Specified by:
canSetPasswordin interfaceRepositoryServerHandle- Throws:
java.io.IOException- if an IO error occurs
-
getPasswordExpiration NEW
long getPasswordExpiration() throws java.io.IOExceptionDescription 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:
java.io.IOException- if an IO error occurs
-
setPassword NEW
boolean setPassword(char[] saltedSHA256PasswordHash) throws java.io.IOExceptionDescription copied from interface:RepositoryServerHandleSet the password for the user.- Specified by:
setPasswordin interfaceRepositoryServerHandle- Parameters:
saltedSHA256PasswordHash- SHA256 salted password hash- Throws:
java.io.IOException- if an IO error occurs
-
connected NEW
void connected() throws java.io.IOExceptionDescription copied from interface:RepositoryServerHandleVerify that server is alive and connected.- Specified by:
connectedin interfaceRepositoryServerHandle- Throws:
java.io.IOException- if connection verification fails
-
-