public class TestPublickeyAuthenticator extends Object implements org.apache.sshd.server.PublickeyAuthenticator
| Modifier and Type | Class and Description |
|---|---|
static class |
TestPublickeyAuthenticator.PublickeyAuthenticatorRequest |
| Constructor and Description |
|---|
TestPublickeyAuthenticator(boolean keyAuthz) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
authenticate(String username,
PublicKey key,
org.apache.sshd.server.session.ServerSession session) |
PublicKey |
decodePublicKey(String keyLine) |
static byte[] |
decrypt(byte[] text,
PrivateKey key) |
public TestPublickeyAuthenticator(boolean keyAuthz)
public boolean authenticate(String username, PublicKey key, org.apache.sshd.server.session.ServerSession session)
authenticate in interface org.apache.sshd.server.PublickeyAuthenticatorpublic static byte[] decrypt(byte[] text, PrivateKey key) throws Exception
Exceptionpublic PublicKey decodePublicKey(String keyLine) throws Exception
ExceptionCopyright © 2003–2017 The Apache Software Foundation. All rights reserved.