public class JGitPublicKeyAuthentication
extends org.apache.sshd.client.auth.pubkey.UserAuthPublicKey
JGitPublicKeyIterator
. The super class creates in
init(ClientSession, String)
a
UserAuthPublicKeyIterator
, which
in its constructor does some strange Stream
"magic"
that ends up loading keys prematurely.Constructor and Description |
---|
JGitPublicKeyAuthentication(List<org.apache.sshd.common.NamedFactory<org.apache.sshd.common.signature.Signature>> factories)
Creates a new
JGitPublicKeyAuthentication . |
Modifier and Type | Method and Description |
---|---|
org.apache.sshd.client.session.ClientSession |
getClientSession() |
String |
getService() |
org.apache.sshd.client.session.ClientSession |
getSession() |
void |
init(org.apache.sshd.client.session.ClientSession session,
String service) |
appendSignature, destroy, getSignatureFactories, processAuthDataRequest, releaseKeys, sendAuthDataRequest, setSignatureFactories
getName, process, toString
getSimplifiedLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public JGitPublicKeyAuthentication(List<org.apache.sshd.common.NamedFactory<org.apache.sshd.common.signature.Signature>> factories)
JGitPublicKeyAuthentication
.factories
- signature factories to usepublic void init(org.apache.sshd.client.session.ClientSession session, String service) throws Exception
init
in interface org.apache.sshd.client.auth.UserAuth
init
in class org.apache.sshd.client.auth.pubkey.UserAuthPublicKey
Exception
public org.apache.sshd.client.session.ClientSession getClientSession()
getClientSession
in interface org.apache.sshd.client.session.ClientSessionHolder
getClientSession
in class org.apache.sshd.client.auth.AbstractUserAuth
public org.apache.sshd.client.session.ClientSession getSession()
getSession
in interface org.apache.sshd.common.auth.UserAuthInstance<org.apache.sshd.client.session.ClientSession>
getSession
in class org.apache.sshd.client.auth.AbstractUserAuth
public String getService()
getService
in class org.apache.sshd.client.auth.AbstractUserAuth
Copyright © 2019 Eclipse JGit Project. All rights reserved.