Package com.sshtools.common.auth
Class PublicKeyAuthenticationAdapter
java.lang.Object
com.sshtools.common.auth.PublicKeyAuthenticationAdapter
- All Implemented Interfaces:
Authenticator,PublicKeyAuthenticationProvider
public abstract class PublicKeyAuthenticationAdapter
extends Object
implements PublicKeyAuthenticationProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(SshPublicKey key, String comment, SshConnection con) getKeys(SshConnection con) voidremove(SshPublicKey key, SshConnection con) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sshtools.common.auth.PublicKeyAuthenticationProvider
checkKey, isAuthorizedKey
-
Constructor Details
-
PublicKeyAuthenticationAdapter
public PublicKeyAuthenticationAdapter()
-
-
Method Details
-
getKeys
public Iterator<SshPublicKeyFile> getKeys(SshConnection con) throws PermissionDeniedException, IOException - Specified by:
getKeysin interfacePublicKeyAuthenticationProvider- Throws:
PermissionDeniedExceptionIOException
-
remove
public void remove(SshPublicKey key, SshConnection con) throws IOException, PermissionDeniedException, SshException - Specified by:
removein interfacePublicKeyAuthenticationProvider- Throws:
IOExceptionPermissionDeniedExceptionSshException
-
add
public void add(SshPublicKey key, String comment, SshConnection con) throws IOException, PermissionDeniedException, SshException - Specified by:
addin interfacePublicKeyAuthenticationProvider- Throws:
IOExceptionPermissionDeniedExceptionSshException
-