Module org.eclipse.jgit.ssh.apache
Class JGitPublicKeyAuthentication
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.client.auth.AbstractUserAuth
org.apache.sshd.client.auth.pubkey.UserAuthPublicKey
org.eclipse.jgit.internal.transport.sshd.JGitPublicKeyAuthentication
- All Implemented Interfaces:
org.apache.sshd.client.auth.UserAuth,org.apache.sshd.client.session.ClientSessionHolder,org.apache.sshd.common.auth.UserAuthInstance<org.apache.sshd.client.session.ClientSession>,org.apache.sshd.common.NamedResource,org.apache.sshd.common.signature.SignatureFactoriesHolder,org.apache.sshd.common.signature.SignatureFactoriesManager
public class JGitPublicKeyAuthentication
extends org.apache.sshd.client.auth.pubkey.UserAuthPublicKey
Custom
UserAuthPublicKey implementation for handling SSH config
PubkeyAcceptedAlgorithms and interaction with the SSH agent.-
Field Summary
Fields inherited from class org.apache.sshd.client.auth.pubkey.UserAuthPublicKey
chosenAlgorithm, current, currentAlgorithms, factories, IDENTITY_AGENT, keys, NAME, USE_DEFAULT_IDENTITIESFields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
logFields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR -
Method Summary
Modifier and TypeMethodDescriptionprotected Iterator<org.apache.sshd.client.auth.pubkey.PublicKeyIdentity>createPublicKeyIterator(org.apache.sshd.client.session.ClientSession session, org.apache.sshd.common.signature.SignatureFactoriesManager manager) voidprotected voidprotected org.apache.sshd.client.auth.pubkey.PublicKeyIdentityresolveAttemptedPublicKeyIdentity(org.apache.sshd.client.session.ClientSession session, String service) Methods inherited from class org.apache.sshd.client.auth.pubkey.UserAuthPublicKey
appendSignature, destroy, getDefaultSignatureAlgorithm, getSignatureFactories, processAuthDataRequest, resolveAttemptedPublicKeyIdentity, sendAuthDataRequest, setSignatureFactories, signalAuthMethodFailure, signalAuthMethodSuccessMethods inherited from class org.apache.sshd.client.auth.AbstractUserAuth
getClientSession, getName, getService, getSession, isCancellable, process, setCancellable, toStringMethods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.sshd.common.signature.SignatureFactoriesHolder
getSignatureFactoriesNameList, getSignatureFactoriesNamesMethods inherited from interface org.apache.sshd.common.signature.SignatureFactoriesManager
setSignatureFactoriesNameList, setSignatureFactoriesNames, setSignatureFactoriesNames
-
Method Details
-
init
public void init(org.apache.sshd.client.session.ClientSession rawSession, String service) throws Exception - Specified by:
initin interfaceorg.apache.sshd.client.auth.UserAuth- Overrides:
initin classorg.apache.sshd.client.auth.pubkey.UserAuthPublicKey- Throws:
Exception
-
createPublicKeyIterator
protected Iterator<org.apache.sshd.client.auth.pubkey.PublicKeyIdentity> createPublicKeyIterator(org.apache.sshd.client.session.ClientSession session, org.apache.sshd.common.signature.SignatureFactoriesManager manager) throws Exception - Overrides:
createPublicKeyIteratorin classorg.apache.sshd.client.auth.pubkey.UserAuthPublicKey- Throws:
Exception
-
resolveAttemptedPublicKeyIdentity
protected org.apache.sshd.client.auth.pubkey.PublicKeyIdentity resolveAttemptedPublicKeyIdentity(org.apache.sshd.client.session.ClientSession session, String service) throws Exception - Overrides:
resolveAttemptedPublicKeyIdentityin classorg.apache.sshd.client.auth.pubkey.UserAuthPublicKey- Throws:
Exception
-
releaseKeys
- Overrides:
releaseKeysin classorg.apache.sshd.client.auth.pubkey.UserAuthPublicKey- Throws:
IOException
-