com.mindbright.ssh2
public class SSH2AuthPublicKey extends java.lang.Object implements SSH2AuthModule
SSH2PKISigner
to
access an abstract PKI signing mechanism (e.g. implemented with simple file
based public/private keys without certificates).SSH2AuthModule
,
SSH2PKISigner
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STANDARD_NAME |
Constructor and Description |
---|
SSH2AuthPublicKey(SSH2PKISigner signer) |
SSH2AuthPublicKey(SSH2PKISigner signer,
boolean test) |
Modifier and Type | Method and Description |
---|---|
void |
clearSensitiveData()
Clean up any sensitive data in this authentication module.
|
protected SSH2PKISigner |
getSigner() |
java.lang.String |
getStandardName()
Should give the standard name of this module as used in the userauth
protocol.
|
SSH2TransportPDU |
processMethodMessage(SSH2UserAuth userAuth,
SSH2TransportPDU pdu)
Processes the given method specific packet and returns a new
packet which will be sent to peer to continue the authentication.
|
boolean |
retryPointless()
Returns true if there is not any point in trying this method again
after it has failed once.
|
SSH2TransportPDU |
startAuthentication(SSH2UserAuth userAuth)
Starts the execution of this module, called from the given
SSH2UserAuth . |
public static final java.lang.String STANDARD_NAME
public SSH2AuthPublicKey(SSH2PKISigner signer)
public SSH2AuthPublicKey(SSH2PKISigner signer, boolean test)
protected SSH2PKISigner getSigner()
public java.lang.String getStandardName()
SSH2AuthModule
getStandardName
in interface SSH2AuthModule
public SSH2TransportPDU processMethodMessage(SSH2UserAuth userAuth, SSH2TransportPDU pdu) throws SSH2Exception
SSH2AuthModule
processMethodMessage
in interface SSH2AuthModule
userAuth
- the authentication layer responsiblepdu
- the method specific packetnull
if no packet
should be sent.SSH2Exception
- if an error occurspublic SSH2TransportPDU startAuthentication(SSH2UserAuth userAuth) throws SSH2SignatureException
SSH2AuthModule
SSH2UserAuth
.startAuthentication
in interface SSH2AuthModule
userAuth
- the authentication layer responsibleSSH2SignatureException
public void clearSensitiveData()
SSH2AuthModule
clearSensitiveData
in interface SSH2AuthModule
public boolean retryPointless()
SSH2AuthModule
retryPointless
in interface SSH2AuthModule