com.sshtools.common.automate
Class SSH2AuthorizedKeysFormat

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

public class SSH2AuthorizedKeysFormat
extends java.lang.Object
implements AuthorizedKeysFormat

DOCUMENT ME!


Constructor Summary
SSH2AuthorizedKeysFormat()
           
 
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

SSH2AuthorizedKeysFormat

public SSH2AuthorizedKeysFormat()
Method Detail

format

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

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

unformat

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

Specified by:
unformat in interface AuthorizedKeysFormat
Parameters:
formatted - DOCUMENT ME!
Returns:
DOCUMENT ME!
Throws:
java.io.IOException - DOCUMENT ME!
InvalidSshKeyException - DOCUMENT ME!
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!