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