Package com.sshtools.common.automate
Class SshtoolsAuthorizedKeysFormat
java.lang.Object
com.sshtools.common.automate.SshtoolsAuthorizedKeysFormat
- All Implemented Interfaces:
AuthorizedKeysFormat
- Version:
- $Revision: 1.15 $
- Author:
- $author$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
format
(AuthorizedKeys keys) byte[]
format
(AuthorizedKeys keys, AuthorizedKeysFileSaver saver) boolean
unformat
(byte[] formatted) unformat
(byte[] formatted, AuthorizedKeysFileLoader loader)
-
Constructor Details
-
SshtoolsAuthorizedKeysFormat
public SshtoolsAuthorizedKeysFormat()
-
-
Method Details
-
format
- Specified by:
format
in interfaceAuthorizedKeysFormat
- Parameters:
keys
-- Returns:
- Throws:
UnsupportedOperationException
-
unformat
- Specified by:
unformat
in interfaceAuthorizedKeysFormat
- Parameters:
formatted
-- Returns:
- Throws:
UnsupportedOperationException
-
format
public byte[] format(AuthorizedKeys keys, AuthorizedKeysFileSaver saver) throws IOException, InvalidSshKeyException - Specified by:
format
in interfaceAuthorizedKeysFormat
- Parameters:
keys
-saver
-- Returns:
- Throws:
IOException
InvalidSshKeyException
-
unformat
public AuthorizedKeys unformat(byte[] formatted, AuthorizedKeysFileLoader loader) throws IOException, InvalidSshKeyException - Specified by:
unformat
in interfaceAuthorizedKeysFormat
- Parameters:
formatted
-loader
-- Returns:
- Throws:
IOException
InvalidSshKeyException
-
requiresKeyFiles
public boolean requiresKeyFiles()- Specified by:
requiresKeyFiles
in interfaceAuthorizedKeysFormat
- Returns:
-