com.sshtools.publickey
Class SECSHPublicKeyFile
java.lang.Object
com.sshtools.publickey.Base64EncodedFileFormat
com.sshtools.publickey.SECSHPublicKeyFile
- All Implemented Interfaces:
- SshPublicKeyFile
public class SECSHPublicKeyFile
- extends Base64EncodedFileFormat
- implements SshPublicKeyFile
getComment
public String getComment()
- Description copied from interface:
SshPublicKeyFile
- Get the comment applied to the key file.
- Specified by:
getComment in interface SshPublicKeyFile
- Returns:
- String
toPublicKey
public SshPublicKey toPublicKey()
throws IOException
- Description copied from interface:
SshPublicKeyFile
- Convert the key file into a usable
SshPublicKey.
- Specified by:
toPublicKey in interface SshPublicKeyFile
- Returns:
- SshPublicKey
- Throws:
IOException
getFormattedKey
public byte[] getFormattedKey()
throws IOException
- Description copied from interface:
SshPublicKeyFile
- Get the formatted key.
- Specified by:
getFormattedKey in interface SshPublicKeyFile
- Returns:
- byte[]
- Throws:
IOException
setComment
public void setComment(String comment)
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012. All Rights Reserved.