public class PEMDecoder extends Object
| Constructor and Description |
|---|
PEMDecoder() |
| Modifier and Type | Method and Description |
|---|---|
PEM |
decode(byte[] bytes)
Decode a PEM and extract the public or private keys.
|
PEM |
decode(Path path)
Decode a PEM and extract the public or private keys.
|
PEM |
decode(String encodedKey)
Decode a PEM and extract the public or private keys.
|
public PEM decode(Path path)
path - the path to the encoded PEM filepublic PEM decode(byte[] bytes)
bytes - the byte array of the encoded PEM filepublic PEM decode(String encodedKey)
encodedKey - the string representation the encoded PEMCopyright © 2023. All rights reserved.