com.jcraft.jsch.agentproxy.sshj
Class AuthAgent

java.lang.Object
  extended by net.schmizz.sshj.userauth.method.AbstractAuthMethod
      extended by com.jcraft.jsch.agentproxy.sshj.AuthAgent
All Implemented Interfaces:
net.schmizz.sshj.common.SSHPacketHandler, net.schmizz.sshj.userauth.method.AuthMethod

public class AuthAgent
extends net.schmizz.sshj.userauth.method.AbstractAuthMethod

An AuthMethod for sshj authentication with an agent.


Field Summary
protected  org.slf4j.Logger log
           
 
Fields inherited from class net.schmizz.sshj.userauth.method.AbstractAuthMethod
params
 
Constructor Summary
AuthAgent(com.jcraft.jsch.agentproxy.AgentProxy agentProxy, com.jcraft.jsch.agentproxy.Identity identity)
           
 
Method Summary
protected  net.schmizz.sshj.common.SSHPacket buildReq()
          Builds a feeler request (sans signature).
 void handle(net.schmizz.sshj.common.Message cmd, net.schmizz.sshj.common.SSHPacket buf)
          Internal use.
protected  net.schmizz.sshj.common.SSHPacket putPubKey(net.schmizz.sshj.common.SSHPacket reqBuf)
           
 
Methods inherited from class net.schmizz.sshj.userauth.method.AbstractAuthMethod
getName, init, makeAccountResource, request, shouldRetry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected final org.slf4j.Logger log
Constructor Detail

AuthAgent

public AuthAgent(com.jcraft.jsch.agentproxy.AgentProxy agentProxy,
                 com.jcraft.jsch.agentproxy.Identity identity)
          throws net.schmizz.sshj.common.Buffer.BufferException
Throws:
net.schmizz.sshj.common.Buffer.BufferException
Method Detail

handle

public void handle(net.schmizz.sshj.common.Message cmd,
                   net.schmizz.sshj.common.SSHPacket buf)
            throws net.schmizz.sshj.userauth.UserAuthException,
                   net.schmizz.sshj.transport.TransportException
Internal use.

Specified by:
handle in interface net.schmizz.sshj.common.SSHPacketHandler
Overrides:
handle in class net.schmizz.sshj.userauth.method.AbstractAuthMethod
Throws:
net.schmizz.sshj.userauth.UserAuthException
net.schmizz.sshj.transport.TransportException

putPubKey

protected net.schmizz.sshj.common.SSHPacket putPubKey(net.schmizz.sshj.common.SSHPacket reqBuf)
                                               throws net.schmizz.sshj.userauth.UserAuthException
Throws:
net.schmizz.sshj.userauth.UserAuthException

buildReq

protected net.schmizz.sshj.common.SSHPacket buildReq()
                                              throws net.schmizz.sshj.userauth.UserAuthException
Builds a feeler request (sans signature).

Overrides:
buildReq in class net.schmizz.sshj.userauth.method.AbstractAuthMethod
Throws:
net.schmizz.sshj.userauth.UserAuthException


Copyright © 2013 JCraft,Inc.. All rights reserved.