| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final byte[] | AUTH_MAGIC
Magic value for proprietary OpenSSH private key. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | allIntegers(ASN1Sequence sequence)
allIntegers returns true if the sequence holds only ASN1Integer types. |
| public static byte[] | Returns: a byte arraythe cipher parameters. params)Encode a cipher parameters into an OpenSSH private key. |
| public static AsymmetricKeyParameter |
| AUTH_MAGIC | back to summary |
|---|---|
| pack-priv static final byte[] AUTH_MAGIC Magic value for proprietary OpenSSH private key. | |
| OpenSSHPrivateKeyUtil | back to summary |
|---|---|
| private OpenSSHPrivateKeyUtil() | |
| allIntegers | back to summary |
|---|---|
| private static boolean allIntegers(ASN1Sequence sequence) allIntegers returns true if the sequence holds only ASN1Integer types. | |
| encodePrivateKey | back to summary |
|---|---|
| public static byte[] encodePrivateKey(AsymmetricKeyParameter params) throws IOException Encode a cipher parameters into an OpenSSH private key. This does not add headers like ----BEGIN RSA PRIVATE KEY----
| |
| parsePrivateKeyBlob | back to summary |
|---|---|
| public static AsymmetricKeyParameter parsePrivateKeyBlob(byte[] blob) Parse a private key. This method accepts the body of the OpenSSH private key. The easiest way to extract the body is to use PemReader, for example: byte[] blob = new PemReader([reader]).readPemObject().getContent(); CipherParameters params = parsePrivateKeyBlob(blob);
| |