Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static KeyStore createKeyStore(final String keypem, final String certpem)
/**
* from "cert.pem" String
*/
private static List<Certificate> loadCertificates(final String certpem) throws IOException,
public static List<Certificate> loadCertificates(final String certpem) throws IOException,
CertificateException {
final StringReader certReader = new StringReader(certpem);
try (BufferedReader reader = new BufferedReader(certReader)) {
Expand All @@ -83,7 +83,7 @@ private static List<Certificate> loadCertificates(final String certpem) throws I
/**
* "cert.pem" from reader
*/
private static List<Certificate> loadCertificates(final Reader reader) throws IOException,
public static List<Certificate> loadCertificates(final Reader reader) throws IOException,
CertificateException {
try (PEMParser pemParser = new PEMParser(reader)) {
List<Certificate> certificates = new ArrayList<>();
Expand All @@ -105,7 +105,7 @@ private static List<Certificate> loadCertificates(final Reader reader) throws IO
* Return private key ("key.pem") from Reader
*/
@CheckForNull
private static PrivateKey loadPrivateKey(final Reader reader) throws IOException, NoSuchAlgorithmException,
public static PrivateKey loadPrivateKey(final Reader reader) throws IOException, NoSuchAlgorithmException,
InvalidKeySpecException {
try (PEMParser pemParser = new PEMParser(reader)) {
Object readObject = pemParser.readObject();
Expand Down Expand Up @@ -138,7 +138,7 @@ private static PrivateKey loadPrivateKey(final Reader reader) throws IOException
}

@CheckForNull
private static PrivateKey guessKey(byte[] encodedKey) throws NoSuchAlgorithmException {
public static PrivateKey guessKey(byte[] encodedKey) throws NoSuchAlgorithmException {
//no way to know, so iterate
for (String guessFactory : new String[]{"RSA", "ECDSA"}) {
try {
Expand All @@ -157,7 +157,7 @@ private static PrivateKey guessKey(byte[] encodedKey) throws NoSuchAlgorithmExce
* Return KeyPair from "key.pem"
*/
@CheckForNull
private static PrivateKey loadPrivateKey(final String keypem) throws IOException, NoSuchAlgorithmException,
public static PrivateKey loadPrivateKey(final String keypem) throws IOException, NoSuchAlgorithmException,
InvalidKeySpecException {
try (StringReader certReader = new StringReader(keypem);
BufferedReader reader = new BufferedReader(certReader)) {
Expand Down