Package com.google.gerrit.server.account
Class VersionedAuthorizedKeys.Accessor
java.lang.Object
com.google.gerrit.server.account.VersionedAuthorizedKeys.Accessor
- Enclosing class:
- VersionedAuthorizedKeys
Read/write SSH keys by user ID.
-
Method Summary
Modifier and TypeMethodDescriptionaddKey
(Account.Id accountId, String pub) void
deleteKey
(Account.Id accountId, int seq) getKey
(Account.Id accountId, int seq) getKeys
(Account.Id accountId) void
markKeyInvalid
(Account.Id accountId, int seq)
-
Method Details
-
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
@CanIgnoreReturnValue 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
-