public class PrivateKeyFileAuthenticator extends PublicKeyAuthenticator
SSH_MSG_USERAUTH_PK_OK
Constructor and Description |
---|
PrivateKeyFileAuthenticator(java.io.File keyfile) |
PrivateKeyFileAuthenticator(java.io.File keyfile,
java.lang.String passphrase) |
Modifier and Type | Method and Description |
---|---|
void |
authenticate(TransportProtocolClient transport,
java.lang.String username)
Start the authentication
|
java.lang.String |
getPassphrase() |
addKeyPair, getName, onStartAuthentication, processMessage, setKeyPair, sign
cancel, failure, getAuthenticationMethods, isCancelled, isMoreAuthenticationRequired, success, success
addFutureListener, done, isDone, isSuccess, waitFor, waitForever
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
cancel, failure, getAuthenticationMethods, isCancelled, isMoreAuthenticationRequired, success, success
public PrivateKeyFileAuthenticator(java.io.File keyfile, java.lang.String passphrase)
public PrivateKeyFileAuthenticator(java.io.File keyfile)
public java.lang.String getPassphrase()
public void authenticate(TransportProtocolClient transport, java.lang.String username)
ClientAuthenticator
authenticate
in interface ClientAuthenticator
authenticate
in class PublicKeyAuthenticator
Copyright © 2024. All rights reserved.