public class AuthenticationManager extends Object implements MessageHandler
Constructor and Description |
---|
AuthenticationManager(TransportManager tm) |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticateInteractive(String user,
String[] submethods,
InteractiveCallback cb) |
boolean |
authenticateNone(String user) |
boolean |
authenticatePassword(String user,
String pass) |
boolean |
authenticatePublicKey(String user,
AgentProxy proxy) |
boolean |
authenticatePublicKey(String user,
char[] PEMPrivateKey,
String password,
SecureRandom rnd) |
boolean |
getPartialSuccess() |
String[] |
getRemainingMethods(String user) |
void |
handleEndMessage(Throwable cause)
Called to inform that no more messages will be delivered.
|
void |
handleMessage(byte[] msg,
int msglen) |
public AuthenticationManager(TransportManager tm)
public String[] getRemainingMethods(String user) throws IOException
IOException
public boolean getPartialSuccess()
public boolean authenticatePublicKey(String user, AgentProxy proxy) throws IOException
IOException
public boolean authenticatePublicKey(String user, char[] PEMPrivateKey, String password, SecureRandom rnd) throws IOException
IOException
public boolean authenticateNone(String user) throws IOException
IOException
public boolean authenticatePassword(String user, String pass) throws IOException
IOException
public boolean authenticateInteractive(String user, String[] submethods, InteractiveCallback cb) throws IOException
IOException
public void handleMessage(byte[] msg, int msglen) throws IOException
handleMessage
in interface MessageHandler
IOException
public void handleEndMessage(Throwable cause) throws IOException
MessageHandler
handleEndMessage
in interface MessageHandler
cause
- For diagnosis, the reason that caused the transport to close down.IOException
Copyright © 2022. All rights reserved.