org.apache.maven.wagon.providers.ssh
Class TestPublickeyAuthenticator
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
publickeyAuthenticatorRequests
public List<TestPublickeyAuthenticator.PublickeyAuthenticatorRequest> publickeyAuthenticatorRequests
keyAuthz
public boolean keyAuthz
TestPublickeyAuthenticator
public TestPublickeyAuthenticator(boolean keyAuthz)
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.