public class OpenSSHPublicKeyFormat extends java.lang.Object implements SshPublicKeyFormat
Constructor and Description |
---|
OpenSSHPublicKeyFormat()
Creates a new OpenSSHPublicKeyFormat object.
|
OpenSSHPublicKeyFormat(java.lang.String comment)
Creates a new OpenSSHPublicKeyFormat object.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
formatKey(byte[] keyblob) |
java.lang.String |
getComment() |
java.lang.String |
getFormatType() |
byte[] |
getKeyBlob(byte[] formattedKey) |
boolean |
isFormatted(byte[] formattedKey) |
void |
setComment(java.lang.String comment) |
boolean |
supportsAlgorithm(java.lang.String algorithm) |
public OpenSSHPublicKeyFormat(java.lang.String comment)
comment
- public OpenSSHPublicKeyFormat()
public void setComment(java.lang.String comment)
setComment
in interface SshPublicKeyFormat
comment
- public java.lang.String getComment()
getComment
in interface SshPublicKeyFormat
public java.lang.String getFormatType()
getFormatType
in interface SshPublicKeyFormat
public byte[] getKeyBlob(byte[] formattedKey) throws InvalidSshKeyException
getKeyBlob
in interface SshPublicKeyFormat
formattedKey
- InvalidSshKeyException
public byte[] formatKey(byte[] keyblob)
formatKey
in interface SshPublicKeyFormat
keyblob
- public boolean isFormatted(byte[] formattedKey)
isFormatted
in interface SshPublicKeyFormat
formattedKey
- public boolean supportsAlgorithm(java.lang.String algorithm)
supportsAlgorithm
in interface SshPublicKeyFormat
algorithm
- Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.