Class AbstractAS4CryptoFactory

java.lang.Object
com.helger.phase4.crypto.AbstractAS4CryptoFactory
All Implemented Interfaces:
IAS4CryptoFactory
Direct Known Subclasses:
AS4CryptoFactoryInMemoryKeyStore, AS4CryptoFactoryProperties

public abstract class AbstractAS4CryptoFactory extends Object implements IAS4CryptoFactory
Abstract implementation of IAS4CryptoFactory.
Since:
2.6.0
Author:
Philip Helger
  • Constructor Details

    • AbstractAS4CryptoFactory

      protected AbstractAS4CryptoFactory()
  • Method Details

    • getPrivateKeyEntry

      @Nullable public KeyStore.PrivateKeyEntry getPrivateKeyEntry()
      Specified by:
      getPrivateKeyEntry in interface IAS4CryptoFactory
      Returns:
      The underlying private key entry from the keystore or null if none is available (the reasons depend on the used implementation).
    • getCertificate

      @Nullable public X509Certificate getCertificate()
      Returns:
      The public certificate of the private key entry or null if the private key entry could not be loaded.