com.sshtools.daemon.authentication
Class AuthorizationFileVerification

java.lang.Object
  extended by com.sshtools.daemon.authentication.AuthorizationFileVerification
All Implemented Interfaces:
PublicKeyVerification

public class AuthorizationFileVerification
extends java.lang.Object
implements PublicKeyVerification

Version:
$Revision: 1.1 $
Author:
$author$

Field Summary
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
AuthorizationFileVerification()
           
 
Method Summary
 boolean acceptKey(java.lang.String username, java.lang.String algorithm, byte[] encoded)
           
private  SshPublicKey getAuthorizedKey(java.lang.String username, java.lang.String algorithm, byte[] encoded)
           
 boolean verifyKeySignature(java.lang.String username, java.lang.String algorithm, byte[] encoded, java.lang.String service, byte[] sessionId, byte[] signature)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static org.apache.commons.logging.Log log
Constructor Detail

AuthorizationFileVerification

public AuthorizationFileVerification()
Method Detail

verifyKeySignature

public boolean verifyKeySignature(java.lang.String username,
                                  java.lang.String algorithm,
                                  byte[] encoded,
                                  java.lang.String service,
                                  byte[] sessionId,
                                  byte[] signature)
                           throws java.io.IOException
Specified by:
verifyKeySignature in interface PublicKeyVerification
Parameters:
username -
algorithm -
encoded -
service -
sessionId -
signature -
Returns:
Throws:
java.io.IOException

getAuthorizedKey

private SshPublicKey getAuthorizedKey(java.lang.String username,
                                      java.lang.String algorithm,
                                      byte[] encoded)
                               throws java.io.IOException
Throws:
java.io.IOException

acceptKey

public boolean acceptKey(java.lang.String username,
                         java.lang.String algorithm,
                         byte[] encoded)
                  throws java.io.IOException
Specified by:
acceptKey in interface PublicKeyVerification
Parameters:
username -
algorithm -
encoded -
Returns:
Throws:
java.io.IOException