public class SshtoolsPrivateKeyFormat extends Base64EncodedFileFormat implements SshPrivateKeyFormat
begin, end| Constructor and Description |
|---|
SshtoolsPrivateKeyFormat()
Creates a new SshtoolsPrivateKeyFormat object.
|
SshtoolsPrivateKeyFormat(java.lang.String subject,
java.lang.String comment)
Creates a new SshtoolsPrivateKeyFormat 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 |
isPassphraseProtected(byte[] formattedKey) |
boolean |
supportsAlgorithm(java.lang.String algorithm) |
formatKey, getHeaderValue, getKeyBlob, isFormatted, setHeaderValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisFormattedpublic SshtoolsPrivateKeyFormat(java.lang.String subject,
java.lang.String comment)
subject - comment - public SshtoolsPrivateKeyFormat()
public java.lang.String getFormatType()
getFormatType in interface SshKeyFormatConversiongetFormatType in interface SshPrivateKeyFormatgetFormatType in class Base64EncodedFileFormatpublic boolean isPassphraseProtected(byte[] formattedKey)
isPassphraseProtected in interface SshPrivateKeyFormatformattedKey - public byte[] decryptKeyblob(byte[] formattedKey,
java.lang.String passphrase)
throws InvalidSshKeyException
decryptKeyblob in interface SshPrivateKeyFormatformattedKey - passphrase - InvalidSshKeyExceptionpublic byte[] encryptKeyblob(byte[] keyblob,
java.lang.String passphrase)
encryptKeyblob in interface SshPrivateKeyFormatkeyblob - passphrase - public boolean supportsAlgorithm(java.lang.String algorithm)
supportsAlgorithm in interface SshPrivateKeyFormatalgorithm - Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.