public class X509PublicKeyStore extends Object implements PublicKeyStore
| Constructor and Description | 
|---|
| X509PublicKeyStore() | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | isAuthorizedKey(SshPublicKey key,
               Connection con)Check the supplied public key against the users authorized keys. | 
public boolean isAuthorizedKey(SshPublicKey key, Connection con)
PublicKeyStoreCheck the supplied public key against the users authorized keys. The
 actual verification of the key is performed by the server, you only need
 to return a value to indicate whether the key is authorized or not. You
 can obtain the username, home directory, group or remote socket address
 from the com.maverick.sshd.platform.AuthenticationProvider instance.
If your authorized key database is kept on the native file system you
 can obtain and initialize an instance as follows:
 
 NativeFileSystemProvider nfs =
         (NativeFileSystemProvider)authenticationProvider.getContext().getFileSystemProvider().newInstance();
 nfs.init(sessionid, null, authenticationProvider.getContext());
 isAuthorizedKey in interface PublicKeyStorekey - SshPublicKeyCopyright © 2025. All rights reserved.