Skip to content

Commit

Permalink
Made ctor private again
Browse files Browse the repository at this point in the history
  • Loading branch information
phax committed Oct 23, 2024
1 parent 6c210cf commit 332e2f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ public AS4CryptoFactoryConfiguration (@Nonnull final IConfigWithFallback aConfig
* The trust store descriptor. May be <code>null</code> in which case
* the global JRE CA certs list will be used.
*/
public AS4CryptoFactoryConfiguration (@Nonnull final IAS4KeyStoreDescriptor aKeyStoreDesc,
@Nonnull final IAS4TrustStoreDescriptor aTrustStorDesc)
private AS4CryptoFactoryConfiguration (@Nonnull final IAS4KeyStoreDescriptor aKeyStoreDesc,
@Nonnull final IAS4TrustStoreDescriptor aTrustStorDesc)
{
super (aKeyStoreDesc, aTrustStorDesc);
m_aKeyStoreDesc = aKeyStoreDesc;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import org.slf4j.LoggerFactory;

import com.helger.commons.io.file.SimpleFileIO;
import com.helger.phase4.crypto.AS4CryptoFactoryConfiguration;
import com.helger.phase4.crypto.AS4CryptoFactoryInMemoryKeyStore;
import com.helger.phase4.crypto.AS4KeyStoreDescriptor;
import com.helger.phase4.crypto.AS4TrustStoreDescriptor;
import com.helger.phase4.crypto.IAS4CryptoFactory;
Expand Down Expand Up @@ -56,7 +56,7 @@ public static void main (final String [] args) throws Exception
aTSD = AS4TrustStoreDescriptor.builder (aTSD)
.path (folder.getAbsolutePath () + "/" + aTSD.getTrustStorePath ())
.build ();
final IAS4CryptoFactory aCryptoFactory = new AS4CryptoFactoryConfiguration (aKSD, aTSD);
final IAS4CryptoFactory aCryptoFactory = new AS4CryptoFactoryInMemoryKeyStore (aKSD, aTSD);

LOGGER.info ("Reading " + f.getName ());
final byte [] aBytes = SimpleFileIO.getAllFileBytes (f);
Expand Down

0 comments on commit 332e2f3

Please sign in to comment.