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)
boolean
requiresKeyFiles()
AuthorizedKeys
unformat(byte[] formatted)
AuthorizedKeys
unformat(byte[] formatted, AuthorizedKeysFileLoader loader)
-
-
-
Method Detail
-
format
byte[] format(AuthorizedKeys keys) throws java.io.IOException, InvalidSshKeyException
- Parameters:
keys
-- Returns:
- Throws:
java.io.IOException
InvalidSshKeyException
-
format
byte[] format(AuthorizedKeys keys, AuthorizedKeysFileSaver saver) throws java.io.IOException, InvalidSshKeyException
- Parameters:
keys
-saver
-- Returns:
- Throws:
java.io.IOException
InvalidSshKeyException
-
unformat
AuthorizedKeys unformat(byte[] formatted) throws java.io.IOException, InvalidSshKeyException
- Parameters:
formatted
-- Returns:
- Throws:
java.io.IOException
InvalidSshKeyException
-
unformat
AuthorizedKeys unformat(byte[] formatted, AuthorizedKeysFileLoader loader) throws java.io.IOException, InvalidSshKeyException
- Parameters:
formatted
-loader
-- Returns:
- Throws:
java.io.IOException
InvalidSshKeyException
-
requiresKeyFiles
boolean requiresKeyFiles()
- Returns:
-
-