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.PublickeyAuthenticator
public static byte[] decrypt(byte[] text, PrivateKey key) throws Exception
Exception
public PublicKey decodePublicKey(String keyLine) throws Exception
Exception
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.