public class Ssh2PublicKeyAuthentication extends PublicKeyAuthentication implements AuthenticationClient
authenticating, privatekey, publickey, username
CANCELLED, 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, setUsername
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMethod, getUsername, setUsername
public void authenticate(AuthenticationProtocol authentication, String servicename) throws SshException, AuthenticationResult
AuthenticationClient
authenticate
in interface AuthenticationClient
AuthenticationResult
SshException
protected byte[] encodeSignature(byte[] signature) throws IOException
IOException
public void setSignatureGenerator(SignatureGenerator generator)
generator
- Copyright © 2024. All rights reserved.