public class AuthorizedKeys
extends java.lang.Object
Constructor and Description |
---|
AuthorizedKeys() |
Modifier and Type | Method and Description |
---|---|
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) |
public java.util.Map getAuthorizedKeys()
public void addKey(java.lang.String username, SshPublicKey key)
username
- key
- public void removeKey(SshPublicKey key)
key
- public boolean containsKey(SshPublicKey key)
key
- public static AuthorizedKeys parse(byte[] formatted, java.lang.String serverId, java.lang.String hostname, AuthorizedKeysFileLoader loader) throws RemoteIdentificationException, java.io.IOException, InvalidSshKeyException
formatted
- serverId
- loader
- RemoteIdentificationException
java.io.IOException
InvalidSshKeyException
public static byte[] create(AuthorizedKeys keys, java.lang.String serverId, java.lang.String hostname, AuthorizedKeysFileSaver saver) throws RemoteIdentificationException, java.io.IOException, InvalidSshKeyException
keys
- serverId
- saver
- RemoteIdentificationException
java.io.IOException
InvalidSshKeyException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.