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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
getComment
public java.lang.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 java.io.IOException
- Description copied from interface:
SshPublicKeyFile
- Convert the key file into a usable
SshPublicKey.
- Specified by:
toPublicKey in interface SshPublicKeyFile
- Returns:
- SshPublicKey
- Throws:
java.io.IOException
getFormattedKey
public byte[] getFormattedKey()
throws java.io.IOException
- Description copied from interface:
SshPublicKeyFile
- Get the formatted key.
- Specified by:
getFormattedKey in interface SshPublicKeyFile
- Returns:
- byte[]
- Throws:
java.io.IOException
setComment
public void setComment(java.lang.String comment)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getOptions
public java.lang.String getOptions()
- Description copied from interface:
SshPublicKeyFile
- Get the options string applied to the key file
- Specified by:
getOptions in interface SshPublicKeyFile
- Returns:
- options string
Copyright © 2012. All Rights Reserved.