public static class VersionedAuthorizedKeys.Accessor extends Object
Modifier and Type | Method and Description |
---|---|
AccountSshKey |
addKey(Account.Id accountId,
String pub) |
void |
deleteKey(Account.Id accountId,
int seq) |
AccountSshKey |
getKey(Account.Id accountId,
int seq) |
List<AccountSshKey> |
getKeys(Account.Id accountId) |
void |
markKeyInvalid(Account.Id accountId,
int seq) |
public List<AccountSshKey> getKeys(Account.Id accountId) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
public AccountSshKey getKey(Account.Id accountId, int seq) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
public AccountSshKey addKey(Account.Id accountId, String pub) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException, com.google.gerrit.exceptions.InvalidSshKeyException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
com.google.gerrit.exceptions.InvalidSshKeyException
public void deleteKey(Account.Id accountId, int seq) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
IOException
org.eclipse.jgit.errors.ConfigInvalidException
public void markKeyInvalid(Account.Id accountId, int seq) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
IOException
org.eclipse.jgit.errors.ConfigInvalidException