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 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