com.jscape.inet.ssh.util.keyreader
Interface KeyPairFormat
public interface KeyPairFormat
Represents key pair format.
- Version:
- 1.0
- Author:
- Alex Usun
- See Also:
- Source code
Method Summary |
java.security.KeyPair |
restoreKeyPair(byte[] data,
java.lang.String passphrase)
Restores key pair from the specified byte array. |
restoreKeyPair
java.security.KeyPair restoreKeyPair(byte[] data,
java.lang.String passphrase)
throws FormatException
- Restores key pair from the specified byte array.
- Parameters:
data
- key pair datapassphrase
- passphrase
- Returns:
- restored key pair
- Throws:
java.lang.IllegalArgumentException
- if specified key data is not in corresponded format
FormatException
- if key pair cannot be restored
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved