com.sshtools.common.automate
Class AuthorizedKeys

java.lang.Object
  extended by com.sshtools.common.automate.AuthorizedKeys

public class AuthorizedKeys
extends java.lang.Object

Version:
$Revision: 1.15 $
Author:
$author$

Constructor Summary
AuthorizedKeys()
           
 
Method Summary
 void addKey(java.lang.String username, SshPublicKey key)
           
 boolean containsKey(SshPublicKey key)
           
static byte[] create(AuthorizedKeys keys, java.lang.String serverId, java.lang.String hostname, AuthorizedKeysFileSaver saver)
           
 java.util.Map getAuthorizedKeys()
           
static AuthorizedKeys parse(byte[] formatted, java.lang.String serverId, java.lang.String hostname, AuthorizedKeysFileLoader loader)
           
 void removeKey(SshPublicKey key)
           
 
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

getAuthorizedKeys

public java.util.Map getAuthorizedKeys()
Returns:

addKey

public void addKey(java.lang.String username,
                   SshPublicKey key)
Parameters:
username -
key -

removeKey

public void removeKey(SshPublicKey key)
Parameters:
key -

containsKey

public boolean containsKey(SshPublicKey key)
Parameters:
key -
Returns:

parse

public static AuthorizedKeys parse(byte[] formatted,
                                   java.lang.String serverId,
                                   java.lang.String hostname,
                                   AuthorizedKeysFileLoader loader)
                            throws RemoteIdentificationException,
                                   java.io.IOException,
                                   InvalidSshKeyException
Parameters:
formatted -
serverId -
loader -
Returns:
Throws:
RemoteIdentificationException
java.io.IOException
InvalidSshKeyException

create

public static byte[] create(AuthorizedKeys keys,
                            java.lang.String serverId,
                            java.lang.String hostname,
                            AuthorizedKeysFileSaver saver)
                     throws RemoteIdentificationException,
                            java.io.IOException,
                            InvalidSshKeyException
Parameters:
keys -
serverId -
saver -
Returns:
Throws:
RemoteIdentificationException
java.io.IOException
InvalidSshKeyException


Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.