Class AuthorizedKeyFile
java.lang.Object
com.sshtools.common.publickey.authorized.AuthorizedKeyFile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddKey(SshPublicKey key, String comment) voidaddKey(SshPublicKey key, String comment, Option<?>... options) getKeyEntry(SshPublicKey key) getKeys()booleanvoidload(InputStream in) static voidvoidremoveKey(PublicKeyEntry entry) voidremoveKeys(SshPublicKey... keys) voidsave(OutputStream out) voidsetOption(PublicKeyEntry entry, Option<?> option) voidsetOption(SshPublicKey key, Option<?> option)
-
Constructor Details
-
AuthorizedKeyFile
public AuthorizedKeyFile() -
AuthorizedKeyFile
- Throws:
IOException
-
-
Method Details
-
load
- Throws:
IOException
-
isAuthorizedKey
-
getKeyEntry
-
getKeys
-
removeKeys
-
removeKey
-
addKey
-
addKey
-
setOption
-
setOption
-
getFormattedFile
- Throws:
IOException
-
main
-
save
-