net.adamcin.httpsig.ssh.jce
Class AuthorizedKeys

java.lang.Object
  extended by net.adamcin.httpsig.ssh.jce.AuthorizedKeys

public final class AuthorizedKeys
extends Object

Factory methods for creating DefaultVerifier instances around SSH authorized_keys files


Constructor Summary
AuthorizedKeys()
           
 
Method Summary
static Keychain defaultKeychain()
           
static Keychain newKeychain(File authorizedKeysFile)
          Convenience method which should simplify the interaction for 99% of implementations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorizedKeys

public AuthorizedKeys()
Method Detail

defaultKeychain

public static Keychain defaultKeychain()
                                throws IOException
Returns:
a Keychain attached to the authorized_keys identities read from
Throws:
IOException - if the default authorized_Keys file does not exist.

newKeychain

public static Keychain newKeychain(File authorizedKeysFile)
                            throws IOException
Convenience method which should simplify the interaction for 99% of implementations.

Parameters:
authorizedKeysFile - File in the RFC4253 authorized_keys format that every Linux admin knows and loves, which contains a list of public keys which are allowed for authentication
Returns:
a Keychain attached to the authorized_keys identities
Throws:
IOException


Copyright © 2013-2014. All Rights Reserved.