ServerKeyVerifier from Apache MINA sshd and our
ServerKeyDatabase.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final ServerKeyDatabase | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public | JGitServerKeyVerifier(ServerKeyDatabase
to use database)Creates a new |
| Modifier and Type | Method and Description |
|---|---|
| public List | lookup(ClientSession
needed to determine the config files if specified in the ssh
config session, SocketAddress to find entries for remoteAddress)Implements org. Retrieves all public keys known for a given remote. |
| public boolean | verifyServerKey(ClientSession
the current session, SocketAddress ClientSessionthe host's remoteAddress, PublicKey SocketAddressthe presented server serverKey)PublicKeyImplements org. Verify that the server key provided is really the one of the host. |
| database | back to summary |
|---|---|
| private final ServerKeyDatabase database
| |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| JGitServerKeyVerifier | back to summary |
|---|---|
| public JGitServerKeyVerifier(ServerKeyDatabase database) Creates a new
| |
| lookup | back to summary |
|---|---|
| public List Implements org. Doc from org. Retrieves all public keys known for a given remote.
| |
| verifyServerKey | back to summary |
|---|---|
| public boolean verifyServerKey(ClientSession session, SocketAddress remoteAddress, PublicKey serverKey) Implements org. Doc from org. Verify that the server key provided is really the one of the host.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final JGitClientSession |
| Access | Constructor and Description |
|---|---|
| public |
| session | back to summary |
|---|---|
| private final JGitClientSession session | |
| SessionConfig | back to summary |
|---|---|
| public SessionConfig(JGitClientSession session) | |
| get | back to summary |
|---|---|
| private List | |
| getGlobalKnownHostsFiles | back to summary |
|---|---|
| public List Implements org. Doc from org. Retrieves the list of file names from the "GlobalKnownHostsFile" ssh config. | |
| getHashKnownHosts | back to summary |
|---|---|
| public boolean getHashKnownHosts() Implements org. Doc from org. Obtains the value of the "HashKnownHosts" ssh config.
| |
| getStrictHostKeyChecking | back to summary |
|---|---|
| public ServerKeyDatabase. Implements org. Doc from org. Obtains the value of the "StrictHostKeyChecking" ssh config.
| |
| getUserKnownHostsFiles | back to summary |
|---|---|
| public List Implements org. Doc from org. Retrieves the list of file names from the "UserKnownHostsFile" ssh config. | |
| getUsername | back to summary |
|---|---|
| public String getUsername() Implements org. Doc from org. Obtains the user name used in the connection attempt. | |