org.apache.maven.wagon.providers.ssh
Class TestPublickeyAuthenticator

java.lang.Object
  extended by org.apache.maven.wagon.providers.ssh.TestPublickeyAuthenticator
All Implemented Interfaces:
org.apache.sshd.server.PublickeyAuthenticator

public class TestPublickeyAuthenticator
extends Object
implements org.apache.sshd.server.PublickeyAuthenticator

Author:
Olivier Lamy

Nested Class Summary
static class TestPublickeyAuthenticator.PublickeyAuthenticatorRequest
           
 
Field Summary
 boolean keyAuthz
           
 List<TestPublickeyAuthenticator.PublickeyAuthenticatorRequest> publickeyAuthenticatorRequests
           
 
Constructor Summary
TestPublickeyAuthenticator(boolean keyAuthz)
           
 
Method Summary
 boolean authenticate(String username, PublicKey key, org.apache.sshd.server.session.ServerSession session)
           
 PublicKey decodePublicKey(String keyLine)
           
static byte[] decrypt(byte[] text, PrivateKey key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

publickeyAuthenticatorRequests

public List<TestPublickeyAuthenticator.PublickeyAuthenticatorRequest> publickeyAuthenticatorRequests

keyAuthz

public boolean keyAuthz
Constructor Detail

TestPublickeyAuthenticator

public TestPublickeyAuthenticator(boolean keyAuthz)
Method Detail

authenticate

public boolean authenticate(String username,
                            PublicKey key,
                            org.apache.sshd.server.session.ServerSession session)
Specified by:
authenticate in interface org.apache.sshd.server.PublickeyAuthenticator

decrypt

public static byte[] decrypt(byte[] text,
                             PrivateKey key)
                      throws Exception
Throws:
Exception

decodePublicKey

public PublicKey decodePublicKey(String keyLine)
                          throws Exception
Throws:
Exception


Copyright © 2003-2011 The Apache Software Foundation. All Rights Reserved.