Class KeyEncodeHelper
java.lang.Object
org.jenkinsci.main.modules.cli.auth.ssh.KeyEncodeHelper
This class help to encode RSA and DSA keys to OpenSSH format
Methods came from Apache Mina SSH classes
https://github.com/apache/mina-sshd/blob/master/sshd-common/src/main/java/org/apache/sshd/common/config/keys/impl/DSSPublicKeyEntryDecoder.java
https://github.com/apache/mina-sshd/blob/master/sshd-common/src/main/java/org/apache/sshd/common/config/keys/impl/RSAPublicKeyDecoder.java
https://github.com/apache/mina-sshd/blob/master/sshd-common/src/main/java/org/apache/sshd/common/config/keys/KeyEntryResolver.java
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
static byte[]
encodeInt
(OutputStream s, int v) static int
encodeString
(OutputStream s, String v, Charset cs) static int
writeRLEBytes
(OutputStream s, byte[] bytes, int off, int len)
-
Constructor Details
-
KeyEncodeHelper
public KeyEncodeHelper()
-
-
Method Details
-
encodeBigInt
- Throws:
IOException
-
encodeInt
- Throws:
IOException
-
encodeString
- Throws:
IOException
-
writeRLEBytes
- Throws:
IOException
-