com.sshtools.common.automate

Class SSH2AuthorizedKeysFormat

Implemented Interfaces:
AuthorizedKeysFormat

public class SSH2AuthorizedKeysFormat
extends java.lang.Object
implements AuthorizedKeysFormat

Version:
$Revision: 1.14 $
Author:
$author$

Method Summary

byte[]
format(AuthorizedKeys keys)
byte[]
format(AuthorizedKeys keys, AuthorizedKeysFileSaver saver)
boolean
requiresKeyFiles()
AuthorizedKeys
unformat(byte[] formatted)
AuthorizedKeys
unformat(byte[] formatted, AuthorizedKeysFileLoader loader)

Method Details

format

public byte[] format(AuthorizedKeys keys)
            throws IOException,
                   InvalidSshKeyException
Specified by:
format in interface AuthorizedKeysFormat
Parameters:
keys -
Returns:

format

public byte[] format(AuthorizedKeys keys,
                     AuthorizedKeysFileSaver saver)
            throws IOException,
                   InvalidSshKeyException
Specified by:
format in interface AuthorizedKeysFormat
Parameters:
keys -
saver -
Returns:

requiresKeyFiles

public boolean requiresKeyFiles()
Specified by:
requiresKeyFiles in interface AuthorizedKeysFormat
Returns:

unformat

public AuthorizedKeys unformat(byte[] formatted)
            throws IOException,
                   InvalidSshKeyException
Specified by:
unformat in interface AuthorizedKeysFormat
Parameters:
formatted -
Returns:

unformat

public AuthorizedKeys unformat(byte[] formatted,
                               AuthorizedKeysFileLoader loader)
            throws IOException,
                   InvalidSshKeyException
Specified by:
unformat in interface AuthorizedKeysFormat
Parameters:
formatted -
loader -
Returns:

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