Package com.sshtools.common.auth
Class AbstractPublicKeyAuthenticationProvider
java.lang.Object
com.sshtools.common.auth.AbstractPublicKeyAuthenticationProvider
- All Implemented Interfaces:
Authenticator,PublicKeyAuthenticationProvider
- Direct Known Subclasses:
AuthorizedKeysPublicKeyAuthenticationProvider
public abstract class AbstractPublicKeyAuthenticationProvider
extends Object
implements PublicKeyAuthenticationProvider
Abstract implementation of a PublicKeyAuthenticationProvider
that just provides getName() implementation.
- Author:
- Lee David Painter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(SshPublicKey key, String comment, SshConnection con) booleancheckKey(SshPublicKey key, SshConnection con) getKeys(SshConnection con) getName()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
isAuthorizedKey
-
Constructor Details
-
AbstractPublicKeyAuthenticationProvider
public AbstractPublicKeyAuthenticationProvider()
-
-
Method Details
-
checkKey
- Specified by:
checkKeyin interfacePublicKeyAuthenticationProvider- Throws:
IOException
-
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
-
getName
-