Import an existing key
Construct keys in another format to a key representation or import keys from a file.
Method | Type | Description |
| String | Constructs a private key string to PrivateKey |
| String | Constructs a public key string to PublicKey |
| String | Constructs an ECDSA key from a private key string |
| String | Constructs an ECDSA public key from a public key string |
| byte[ ] | Constructs an ECDSA key from a private key bytes |
| byte[ ] | Constructs an ECDSA public key from a public key bytes |
| String | Constructs an ED25519 key from a private key string |
| String | Constructs an ED25519 public key from a public key string |
| byte [ ] | Constructs an ED25519 key from a private key bytes |
| byte [ ] | Constructs an ED25519 public key from a public key bytes |
| byte [ ] | Constructs a private key from bytes to PrivateKey |
| byte [ ] | Contructs a public key from bytes to PublicKey |
| String | Parse a private key from a PEM encoded string |
| String, String | Parse a private key from a PEM encoded string. The private key may be encrypted, e.g. if it was generated by OpenSSL. |
| Reader | Parse a private key from a PEM encoded reader |
| Reader, String | Parse a private key from a PEM encoded stream. The key may be encrypted, e.g. if it was generated by OpenSSL. |
Last updated