Package com.sshtools.common.automate
Class SSH2AuthorizedKeysFormat
- java.lang.Object
-
- com.sshtools.common.automate.SSH2AuthorizedKeysFormat
-
- All Implemented Interfaces:
AuthorizedKeysFormat
public class SSH2AuthorizedKeysFormat extends java.lang.Object implements AuthorizedKeysFormat
- Version:
- $Revision: 1.14 $
- Author:
- $author$
-
-
Constructor Summary
Constructors Constructor Description SSH2AuthorizedKeysFormat()
-
Method Summary
All Methods Instance Methods Concrete 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
public byte[] format(AuthorizedKeys keys) throws java.io.IOException, InvalidSshKeyException
- Specified by:
format
in interfaceAuthorizedKeysFormat
- Parameters:
keys
-- Returns:
- Throws:
java.io.IOException
InvalidSshKeyException
java.lang.UnsupportedOperationException
-
unformat
public AuthorizedKeys unformat(byte[] formatted) throws java.io.IOException, InvalidSshKeyException
- Specified by:
unformat
in interfaceAuthorizedKeysFormat
- Parameters:
formatted
-- Returns:
- Throws:
java.io.IOException
InvalidSshKeyException
java.lang.UnsupportedOperationException
-
format
public byte[] format(AuthorizedKeys keys, AuthorizedKeysFileSaver saver) throws java.io.IOException, InvalidSshKeyException
- Specified by:
format
in interfaceAuthorizedKeysFormat
- Parameters:
keys
-saver
-- Returns:
- Throws:
java.io.IOException
InvalidSshKeyException
-
unformat
public AuthorizedKeys unformat(byte[] formatted, AuthorizedKeysFileLoader loader) throws java.io.IOException, InvalidSshKeyException
- Specified by:
unformat
in interfaceAuthorizedKeysFormat
- Parameters:
formatted
-loader
-- Returns:
- Throws:
java.io.IOException
InvalidSshKeyException
-
requiresKeyFiles
public boolean requiresKeyFiles()
- Specified by:
requiresKeyFiles
in interfaceAuthorizedKeysFormat
- Returns:
-
-