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, setHeaderValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isFormatted
public SshtoolsPrivateKeyFormat(java.lang.String subject, java.lang.String comment)
subject
- comment
- public SshtoolsPrivateKeyFormat()
public java.lang.String getFormatType()
getFormatType
in interface SshKeyFormatConversion
getFormatType
in interface SshPrivateKeyFormat
getFormatType
in class Base64EncodedFileFormat
public boolean isPassphraseProtected(byte[] formattedKey)
isPassphraseProtected
in interface SshPrivateKeyFormat
formattedKey
- public byte[] decryptKeyblob(byte[] formattedKey, java.lang.String passphrase) throws InvalidSshKeyException
decryptKeyblob
in interface SshPrivateKeyFormat
formattedKey
- passphrase
- InvalidSshKeyException
public byte[] encryptKeyblob(byte[] keyblob, java.lang.String passphrase)
encryptKeyblob
in interface SshPrivateKeyFormat
keyblob
- passphrase
- public boolean supportsAlgorithm(java.lang.String algorithm)
supportsAlgorithm
in interface SshPrivateKeyFormat
algorithm
- Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.