com.sshtools.j2ssh.openssh
Class OpenSSHPrivateKeyFormat
java.lang.Object
com.sshtools.j2ssh.openssh.OpenSSHPrivateKeyFormat
- All Implemented Interfaces:
- SshPrivateKeyFormat
public class OpenSSHPrivateKeyFormat
- extends java.lang.Object
- implements SshPrivateKeyFormat
- Version:
- $Revision: 1.12 $
- Author:
- $author$
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
OpenSSHPrivateKeyFormat
public OpenSSHPrivateKeyFormat()
- Creates a new OpenSSHPrivateKeyFormat object.
getFormatType
public java.lang.String getFormatType()
- Specified by:
getFormatType
in interface SshPrivateKeyFormat
- Returns:
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
- Returns:
decryptKeyblob
public byte[] decryptKeyblob(byte[] formattedKey,
java.lang.String passphrase)
throws InvalidSshKeyException
- Specified by:
decryptKeyblob
in interface SshPrivateKeyFormat
- Parameters:
formattedKey
- passphrase
-
- Returns:
-
- Throws:
InvalidSshKeyException
encryptKeyblob
public byte[] encryptKeyblob(byte[] keyblob,
java.lang.String passphrase)
throws InvalidSshKeyException
- Specified by:
encryptKeyblob
in interface SshPrivateKeyFormat
- Parameters:
keyblob
- passphrase
-
- Returns:
-
- Throws:
InvalidSshKeyException
isFormatted
public boolean isFormatted(byte[] formattedKey)
- Specified by:
isFormatted
in interface SshPrivateKeyFormat
- Parameters:
formattedKey
-
- Returns:
isPassphraseProtected
public boolean isPassphraseProtected(byte[] formattedKey)
- Specified by:
isPassphraseProtected
in interface SshPrivateKeyFormat
- Parameters:
formattedKey
-
- Returns:
supportsAlgorithm
public boolean supportsAlgorithm(java.lang.String algorithm)
- Specified by:
supportsAlgorithm
in interface SshPrivateKeyFormat
- Parameters:
algorithm
-
- Returns:
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.