public class OpenSSHPrivateKeyFormat extends java.lang.Object implements SshPrivateKeyFormat
| Constructor and Description |
|---|
OpenSSHPrivateKeyFormat()
Creates a new OpenSSHPrivateKeyFormat object.
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decryptKeyblob(byte[] formattedKey,
java.lang.String passphrase) |
byte[] |
encryptKeyblob(byte[] keyblob,
java.lang.String passphrase) |
java.lang.String |
getFormatType() |
boolean |
isFormatted(byte[] formattedKey) |
boolean |
isPassphraseProtected(byte[] formattedKey) |
boolean |
supportsAlgorithm(java.lang.String algorithm) |
java.lang.String |
toString() |
public OpenSSHPrivateKeyFormat()
public java.lang.String getFormatType()
getFormatType in interface SshPrivateKeyFormatpublic java.lang.String toString()
toString in class java.lang.Objectpublic byte[] decryptKeyblob(byte[] formattedKey,
java.lang.String passphrase)
throws InvalidSshKeyException
decryptKeyblob in interface SshPrivateKeyFormatformattedKey - passphrase - InvalidSshKeyExceptionpublic byte[] encryptKeyblob(byte[] keyblob,
java.lang.String passphrase)
throws InvalidSshKeyException
encryptKeyblob in interface SshPrivateKeyFormatkeyblob - passphrase - InvalidSshKeyExceptionpublic boolean isFormatted(byte[] formattedKey)
isFormatted in interface SshPrivateKeyFormatformattedKey - public boolean isPassphraseProtected(byte[] formattedKey)
isPassphraseProtected in interface SshPrivateKeyFormatformattedKey - public boolean supportsAlgorithm(java.lang.String algorithm)
supportsAlgorithm in interface SshPrivateKeyFormatalgorithm - Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.