Skip to content

Commit b93d063

Browse files
committed
Don't hide utils
1 parent f282617 commit b93d063

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/main/java/com/github/dockerjava/core/util/CertificateUtils.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static KeyStore createKeyStore(final String keypem, final String certpem)
7272
/**
7373
* from "cert.pem" String
7474
*/
75-
private static List<Certificate> loadCertificates(final String certpem) throws IOException,
75+
public static List<Certificate> loadCertificates(final String certpem) throws IOException,
7676
CertificateException {
7777
final StringReader certReader = new StringReader(certpem);
7878
try (BufferedReader reader = new BufferedReader(certReader)) {
@@ -83,7 +83,7 @@ private static List<Certificate> loadCertificates(final String certpem) throws I
8383
/**
8484
* "cert.pem" from reader
8585
*/
86-
private static List<Certificate> loadCertificates(final Reader reader) throws IOException,
86+
public static List<Certificate> loadCertificates(final Reader reader) throws IOException,
8787
CertificateException {
8888
try (PEMParser pemParser = new PEMParser(reader)) {
8989
List<Certificate> certificates = new ArrayList<>();
@@ -105,7 +105,7 @@ private static List<Certificate> loadCertificates(final Reader reader) throws IO
105105
* Return private key ("key.pem") from Reader
106106
*/
107107
@CheckForNull
108-
private static PrivateKey loadPrivateKey(final Reader reader) throws IOException, NoSuchAlgorithmException,
108+
public static PrivateKey loadPrivateKey(final Reader reader) throws IOException, NoSuchAlgorithmException,
109109
InvalidKeySpecException {
110110
try (PEMParser pemParser = new PEMParser(reader)) {
111111
Object readObject = pemParser.readObject();
@@ -138,7 +138,7 @@ private static PrivateKey loadPrivateKey(final Reader reader) throws IOException
138138
}
139139

140140
@CheckForNull
141-
private static PrivateKey guessKey(byte[] encodedKey) throws NoSuchAlgorithmException {
141+
public static PrivateKey guessKey(byte[] encodedKey) throws NoSuchAlgorithmException {
142142
//no way to know, so iterate
143143
for (String guessFactory : new String[]{"RSA", "ECDSA"}) {
144144
try {
@@ -157,7 +157,7 @@ private static PrivateKey guessKey(byte[] encodedKey) throws NoSuchAlgorithmExce
157157
* Return KeyPair from "key.pem"
158158
*/
159159
@CheckForNull
160-
private static PrivateKey loadPrivateKey(final String keypem) throws IOException, NoSuchAlgorithmException,
160+
public static PrivateKey loadPrivateKey(final String keypem) throws IOException, NoSuchAlgorithmException,
161161
InvalidKeySpecException {
162162
try (StringReader certReader = new StringReader(keypem);
163163
BufferedReader reader = new BufferedReader(certReader)) {

0 commit comments

Comments
 (0)