Package com.google.gerrit.server.account
Class VersionedAuthorizedKeys.Accessor
- java.lang.Object
-
- com.google.gerrit.server.account.VersionedAuthorizedKeys.Accessor
-
- Enclosing class:
- VersionedAuthorizedKeys
public static class VersionedAuthorizedKeys.Accessor extends Object
Read/write SSH keys by user ID.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Method Detail
-
getKeys
public List<AccountSshKey> getKeys(Account.Id accountId) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
- Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
getKey
public AccountSshKey getKey(Account.Id accountId, int seq) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
- Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
addKey
public AccountSshKey addKey(Account.Id accountId, String pub) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException, com.google.gerrit.exceptions.InvalidSshKeyException
- Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
com.google.gerrit.exceptions.InvalidSshKeyException
-
deleteKey
public void deleteKey(Account.Id accountId, int seq) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
- Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
markKeyInvalid
public void markKeyInvalid(Account.Id accountId, int seq) throws IOException, org.eclipse.jgit.errors.ConfigInvalidException
- Throws:
IOException
org.eclipse.jgit.errors.ConfigInvalidException
-
-