| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private static final byte[] | |
| private static final Base64. | |
| private static final byte[] | |
| private static final byte[] | |
| private static final byte[] | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Path[] | exportKeyPair(KeyStore keyStore, String alias, char[] keyPassword, Path targetFolder)
Returns: [0] is the key file, [1] is the cert file. |
| public static Path | exportTrustStore(KeyStore keyStore, Path targetFolder)
Returns: a temp file that gets deleted on exit |
| private static void | |
| private static void |
| BEGIN_CERT | back to summary |
|---|---|
| private static final byte[] BEGIN_CERT | |
| BEGIN_KEY | back to summary |
|---|---|
| private static final byte[] BEGIN_KEY | |
| ENCODER | back to summary |
|---|---|
| private static final Base64. | |
| END_CERT | back to summary |
|---|---|
| private static final byte[] END_CERT | |
| END_KEY | back to summary |
|---|---|
| private static final byte[] END_KEY | |
| LINE_SEPARATOR | back to summary |
|---|---|
| private static final byte[] LINE_SEPARATOR | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| PemExporter | back to summary |
|---|---|
| private PemExporter() | |
| exportKeyPair | back to summary |
|---|---|
public static Path[] exportKeyPair(KeyStore keyStore, String alias, char[] keyPassword, Path targetFolder) throws Exception
| |
| exportTrustStore | back to summary |
|---|---|
public static Path exportTrustStore(KeyStore keyStore, Path targetFolder) throws Exception
| |
| writeAsPEM | back to summary |
|---|---|
| private static void writeAsPEM(OutputStream outputStream, Key key) throws IOException | |
| writeAsPEM | back to summary |
|---|---|
| private static void writeAsPEM(OutputStream outputStream, Certificate certificate) throws CertificateEncodingException, IOException | |