public class SshPublicKeyFile
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
SshPublicKeyFile(byte[] keyblob,
SshPublicKeyFormat format)
Creates a new SshPublicKeyFile object.
|
| Modifier and Type | Method and Description |
|---|---|
static SshPublicKeyFile |
create(SshPublicKey key,
SshPublicKeyFormat format) |
java.lang.String |
getAlgorithm() |
byte[] |
getBytes() |
java.lang.String |
getComment() |
SshPublicKeyFormat |
getFormat() |
byte[] |
getKeyBlob() |
static SshPublicKeyFile |
parse(byte[] formattedKey) |
static SshPublicKeyFile |
parse(java.io.File keyfile) |
void |
setComment(java.lang.String comment) |
void |
setFormat(SshPublicKeyFormat newFormat) |
SshPublicKey |
toPublicKey() |
java.lang.String |
toString() |
protected SshPublicKeyFile(byte[] keyblob,
SshPublicKeyFormat format)
keyblob - format - public byte[] getBytes()
public java.lang.String getComment()
public void setComment(java.lang.String comment)
comment - public byte[] getKeyBlob()
public static SshPublicKeyFile create(SshPublicKey key, SshPublicKeyFormat format)
key - format - public static SshPublicKeyFile parse(java.io.File keyfile) throws InvalidSshKeyException, java.io.IOException
keyfile - InvalidSshKeyExceptionjava.io.IOExceptionpublic static SshPublicKeyFile parse(byte[] formattedKey) throws InvalidSshKeyException
formattedKey - InvalidSshKeyExceptionpublic java.lang.String getAlgorithm()
public void setFormat(SshPublicKeyFormat newFormat) throws InvalidSshKeyException
newFormat - InvalidSshKeyExceptionpublic SshPublicKeyFormat getFormat()
public SshPublicKey toPublicKey() throws java.io.IOException
java.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.