public class ExternalIds
extends java.lang.Object
In NoteDb external IDs are stored in the All-Users repository in a Git Notes branch called refs/meta/external-ids where the sha1 of the external ID is used as note name. Each note content is a git config file that contains an external ID. It has exactly one externalId subsection with an accountId and optionally email and password:
[externalId "username:jdoe"] accountId = 1003407 email = [email protected] password = bcrypt:4:LCbmSBDivK/hhGVQMfkDpA==:XcWn0pKYSVU/UJgOvhidkEtmqCp6oKB7
Modifier and Type | Field and Description |
---|---|
static int |
MAX_NOTE_SZ |
Constructor and Description |
---|
ExternalIds(GitRepositoryManager repoManager,
AllUsersName allUsersName) |
Modifier and Type | Method and Description |
---|---|
ExternalId |
get(ExternalId.Key key)
Reads and returns the specified external ID.
|
static org.eclipse.jgit.notes.NoteMap |
readNoteMap(org.eclipse.jgit.revwalk.RevWalk rw,
org.eclipse.jgit.lib.ObjectId rev) |
org.eclipse.jgit.lib.ObjectId |
readRevision() |
static org.eclipse.jgit.lib.ObjectId |
readRevision(org.eclipse.jgit.lib.Repository repo) |
public static final int MAX_NOTE_SZ
@Inject public ExternalIds(GitRepositoryManager repoManager, AllUsersName allUsersName)
public static org.eclipse.jgit.lib.ObjectId readRevision(org.eclipse.jgit.lib.Repository repo) throws java.io.IOException
java.io.IOException
public static org.eclipse.jgit.notes.NoteMap readNoteMap(org.eclipse.jgit.revwalk.RevWalk rw, org.eclipse.jgit.lib.ObjectId rev) throws java.io.IOException
java.io.IOException
public org.eclipse.jgit.lib.ObjectId readRevision() throws java.io.IOException
java.io.IOException
public ExternalId get(ExternalId.Key key) throws java.io.IOException, org.eclipse.jgit.errors.ConfigInvalidException
java.io.IOException
org.eclipse.jgit.errors.ConfigInvalidException