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 SshPublicKeyFormatcomment - public java.lang.String getComment()
getComment in interface SshPublicKeyFormatpublic java.lang.String getFormatType()
getFormatType in interface SshPublicKeyFormatpublic byte[] getKeyBlob(byte[] formattedKey)
throws InvalidSshKeyException
getKeyBlob in interface SshPublicKeyFormatformattedKey - InvalidSshKeyExceptionpublic byte[] formatKey(byte[] keyblob)
formatKey in interface SshPublicKeyFormatkeyblob - public boolean isFormatted(byte[] formattedKey)
isFormatted in interface SshPublicKeyFormatformattedKey - public boolean supportsAlgorithm(java.lang.String algorithm)
supportsAlgorithm in interface SshPublicKeyFormatalgorithm - Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.