public class AuthorizedKeyDecoder extends Object
| Constructor and Description |
|---|
AuthorizedKeyDecoder() |
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
decodePublicKey(String keyLine) |
static String |
encodePublicKey(PublicKey publicKey,
String user)
Encode PublicKey (DSA or RSA encoded) to authorized_keys like string
|
static void |
main(String[] args) |
public static String encodePublicKey(PublicKey publicKey, String user) throws IOException
publicKey - DSA or RSA encodeduser - username for output authorized_keys like stringIOExceptionCopyright © 2017–2020. All rights reserved.