com.sshtools.common.automate
Class SshtoolsAuthorizedKeysFormat

java.lang.Object
  extended by com.sshtools.common.automate.SshtoolsAuthorizedKeysFormat
All Implemented Interfaces:
AuthorizedKeysFormat

public class SshtoolsAuthorizedKeysFormat
extends java.lang.Object
implements AuthorizedKeysFormat

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

Constructor Summary
SshtoolsAuthorizedKeysFormat()
           
 
Method Summary
 byte[] format(AuthorizedKeys keys)
           
 byte[] format(AuthorizedKeys keys, AuthorizedKeysFileSaver saver)
           
 boolean requiresKeyFiles()
           
 AuthorizedKeys unformat(byte[] formatted)
           
 AuthorizedKeys unformat(byte[] formatted, AuthorizedKeysFileLoader loader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SshtoolsAuthorizedKeysFormat

public SshtoolsAuthorizedKeysFormat()
Method Detail

format

public byte[] format(AuthorizedKeys keys)
Specified by:
format in interface AuthorizedKeysFormat
Parameters:
keys -
Returns:
Throws:
java.lang.UnsupportedOperationException

unformat

public AuthorizedKeys unformat(byte[] formatted)
Specified by:
unformat in interface AuthorizedKeysFormat
Parameters:
formatted -
Returns:
Throws:
java.lang.UnsupportedOperationException

format

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

unformat

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

requiresKeyFiles

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


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