com.sshtools.common.automate
Class SshtoolsAuthorizedKeysFormat

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

public class SshtoolsAuthorizedKeysFormat
extends java.lang.Object
implements AuthorizedKeysFormat

DOCUMENT ME!


Constructor Summary
SshtoolsAuthorizedKeysFormat()
           
 
Method Summary
 byte[] format(AuthorizedKeys keys)
          DOCUMENT ME!
 byte[] format(AuthorizedKeys keys, AuthorizedKeysFileSaver saver)
          DOCUMENT ME!
 boolean requiresKeyFiles()
          DOCUMENT ME!
 AuthorizedKeys unformat(byte[] formatted)
          DOCUMENT ME!
 AuthorizedKeys unformat(byte[] formatted, AuthorizedKeysFileLoader loader)
          DOCUMENT ME!
 
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)
DOCUMENT ME!

Specified by:
format in interface AuthorizedKeysFormat
Parameters:
keys - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.UnsupportedOperationException - DOCUMENT ME!

unformat

public AuthorizedKeys unformat(byte[] formatted)
DOCUMENT ME!

Specified by:
unformat in interface AuthorizedKeysFormat
Parameters:
formatted - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.lang.UnsupportedOperationException - DOCUMENT ME!

format

public byte[] format(AuthorizedKeys keys,
                     AuthorizedKeysFileSaver saver)
              throws java.io.IOException,
                     InvalidSshKeyException
DOCUMENT ME!

Specified by:
format in interface AuthorizedKeysFormat
Parameters:
keys - DOCUMENT ME!
saver - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
InvalidSshKeyException - DOCUMENT ME!

unformat

public AuthorizedKeys unformat(byte[] formatted,
                               AuthorizedKeysFileLoader loader)
                        throws java.io.IOException,
                               InvalidSshKeyException
DOCUMENT ME!

Specified by:
unformat in interface AuthorizedKeysFormat
Parameters:
formatted - DOCUMENT ME!
loader - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
InvalidSshKeyException - DOCUMENT ME!

requiresKeyFiles

public boolean requiresKeyFiles()
DOCUMENT ME!

Specified by:
requiresKeyFiles in interface AuthorizedKeysFormat
Returns:
DOCUMENT ME!