com.sshtools.common.automate
Class AuthorizedKeys
java.lang.Object
com.sshtools.common.automate.AuthorizedKeys
public class AuthorizedKeys
- extends java.lang.Object
- Version:
- $Revision: 1.15 $
- Author:
- $author$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuthorizedKeys
public AuthorizedKeys()
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.