com.sshtools.common.automate

Class AuthorizedKeys


public class AuthorizedKeys
extends java.lang.Object

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

Method Summary

void
addKey(String username, SshPublicKey key)
boolean
containsKey(SshPublicKey key)
static byte[]
create(AuthorizedKeys keys, String serverId, String hostname, AuthorizedKeysFileSaver saver)
Map
getAuthorizedKeys()
static AuthorizedKeys
parse(byte[] formatted, String serverId, String hostname, AuthorizedKeysFileLoader loader)
void
removeKey(SshPublicKey key)

Method Details

addKey

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

containsKey

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

create

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

getAuthorizedKeys

public Map getAuthorizedKeys()
Returns:

parse

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

removeKey

public void removeKey(SshPublicKey key)
Parameters:
key -

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