public class TestPublickeyAuthenticator extends Object implements org.apache.sshd.server.PublickeyAuthenticator
Modifier and Type | Class and Description |
---|---|
static class |
TestPublickeyAuthenticator.PublickeyAuthenticatorRequest |
Modifier and Type | Field and Description |
---|---|
boolean |
keyAuthz |
List<TestPublickeyAuthenticator.PublickeyAuthenticatorRequest> |
publickeyAuthenticatorRequests |
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 List<TestPublickeyAuthenticator.PublickeyAuthenticatorRequest> publickeyAuthenticatorRequests
public boolean keyAuthz
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.PublickeyAuthenticator
public static byte[] decrypt(byte[] text, PrivateKey key) throws Exception
Exception
public PublicKey decodePublicKey(String keyLine) throws Exception
Exception
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.