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