public class Ssh2PublicKeyAuthentication extends PublicKeyAuthentication implements AuthenticationClient
authenticating, privatekey, publickey, usernameCANCELLED, COMPLETE, FAILED, FURTHER_AUTHENTICATION_REQUIRED, PUBLIC_KEY_ACCEPTABLE| Constructor and Description |
|---|
Ssh2PublicKeyAuthentication() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate(AuthenticationProtocol authentication,
String servicename)
Perform the authentication according to the specification.
|
protected byte[] |
encodeSignature(byte[] signature) |
void |
setSignatureGenerator(SignatureGenerator generator)
Set the signature generator for this authentication attempt.
|
getMethod, getPrivateKey, getPublicKey, getUsername, isAuthenticating, setAuthenticating, setPrivateKey, setPublicKey, setUsernameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMethod, getUsername, setUsernamepublic void authenticate(AuthenticationProtocol authentication, String servicename) throws SshException, AuthenticationResult
AuthenticationClientauthenticate in interface AuthenticationClientAuthenticationResultSshExceptionprotected byte[] encodeSignature(byte[] signature)
throws IOException
IOExceptionpublic void setSignatureGenerator(SignatureGenerator generator)
generator - Copyright © 2025. All rights reserved.