Package com.sshtools.common.automate
Interface AuthorizedKeysFormat
-
- All Known Implementing Classes:
OpenSSHAuthorizedKeysFormat,SSH2AuthorizedKeysFormat,SshtoolsAuthorizedKeysFormat
public interface AuthorizedKeysFormat- Version:
- $Revision: 1.13 $
- Author:
- $author$
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]format(AuthorizedKeys keys)byte[]format(AuthorizedKeys keys, AuthorizedKeysFileSaver saver)booleanrequiresKeyFiles()AuthorizedKeysunformat(byte[] formatted)AuthorizedKeysunformat(byte[] formatted, AuthorizedKeysFileLoader loader)
-
-
-
Method Detail
-
format
byte[] format(AuthorizedKeys keys) throws java.io.IOException, InvalidSshKeyException
- Parameters:
keys-- Returns:
- Throws:
java.io.IOExceptionInvalidSshKeyException
-
format
byte[] format(AuthorizedKeys keys, AuthorizedKeysFileSaver saver) throws java.io.IOException, InvalidSshKeyException
- Parameters:
keys-saver-- Returns:
- Throws:
java.io.IOExceptionInvalidSshKeyException
-
unformat
AuthorizedKeys unformat(byte[] formatted) throws java.io.IOException, InvalidSshKeyException
- Parameters:
formatted-- Returns:
- Throws:
java.io.IOExceptionInvalidSshKeyException
-
unformat
AuthorizedKeys unformat(byte[] formatted, AuthorizedKeysFileLoader loader) throws java.io.IOException, InvalidSshKeyException
- Parameters:
formatted-loader-- Returns:
- Throws:
java.io.IOExceptionInvalidSshKeyException
-
requiresKeyFiles
boolean requiresKeyFiles()
- Returns:
-
-