com.sshtools.j2ssh.transport.publickey
Class OpenSSHPublicKeyFormat
java.lang.Object
com.sshtools.j2ssh.transport.publickey.OpenSSHPublicKeyFormat
- All Implemented Interfaces:
- SshPublicKeyFormat
public class OpenSSHPublicKeyFormat
- extends java.lang.Object
- implements SshPublicKeyFormat
- Version:
- $Revision: 1.19 $
- Author:
- $author$
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OpenSSHPublicKeyFormat
public OpenSSHPublicKeyFormat(java.lang.String comment)
- Creates a new OpenSSHPublicKeyFormat object.
- Parameters:
comment -
OpenSSHPublicKeyFormat
public OpenSSHPublicKeyFormat()
- Creates a new OpenSSHPublicKeyFormat object.
setComment
public void setComment(java.lang.String comment)
- Specified by:
setComment in interface SshPublicKeyFormat
- Parameters:
comment -
getComment
public java.lang.String getComment()
- Specified by:
getComment in interface SshPublicKeyFormat
- Returns:
getFormatType
public java.lang.String getFormatType()
- Specified by:
getFormatType in interface SshPublicKeyFormat
- Returns:
getKeyBlob
public byte[] getKeyBlob(byte[] formattedKey)
throws InvalidSshKeyException
- Specified by:
getKeyBlob in interface SshPublicKeyFormat
- Parameters:
formattedKey -
- Returns:
-
- Throws:
InvalidSshKeyException
formatKey
public byte[] formatKey(byte[] keyblob)
- Specified by:
formatKey in interface SshPublicKeyFormat
- Parameters:
keyblob -
- Returns:
isFormatted
public boolean isFormatted(byte[] formattedKey)
- Specified by:
isFormatted in interface SshPublicKeyFormat
- Parameters:
formattedKey -
- Returns:
supportsAlgorithm
public boolean supportsAlgorithm(java.lang.String algorithm)
- Specified by:
supportsAlgorithm in interface SshPublicKeyFormat
- Parameters:
algorithm -
- Returns:
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.