|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindbright.ssh2.SSH2AuthPublicKey
public class SSH2AuthPublicKey
This class implements a module for publickey authentication as defined in the
userauth protocol spec. It uses the interface SSH2PKISigner
to
access an abstract PKI signing mechanism (e.g. implemented with simple file
based public/private keys without certificates).
SSH2AuthModule
,
SSH2PKISigner
Field Summary | |
---|---|
static java.lang.String |
STANDARD_NAME
|
Constructor Summary | |
---|---|
SSH2AuthPublicKey(SSH2PKISigner signer)
|
|
SSH2AuthPublicKey(SSH2PKISigner signer,
boolean test)
|
Method Summary | |
---|---|
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 . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String STANDARD_NAME
Constructor Detail |
---|
public SSH2AuthPublicKey(SSH2PKISigner signer)
public SSH2AuthPublicKey(SSH2PKISigner signer, boolean test)
Method Detail |
---|
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 packet
null
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 responsible
SSH2SignatureException
public void clearSensitiveData()
SSH2AuthModule
clearSensitiveData
in interface SSH2AuthModule
public boolean retryPointless()
SSH2AuthModule
retryPointless
in interface SSH2AuthModule
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |