Interface CryptoSuiteFactory

  • All Known Implementing Classes:
    HLSDKJCryptoSuiteFactory


    public interface CryptoSuiteFactory
    Factory to produce a set of crypto suite implementations offering differing cryptographic algorithms and strengths.
    • Field Detail

      • DEFAULT_JDK_PROVIDER

        static final java.lang.String DEFAULT_JDK_PROVIDER
        If set as the default security provider then default crypto suite will not use explicit provider
        See Also:
        Constant Field Values
    • Method Detail

      • getDefault

        static CryptoSuiteFactory getDefault​()
                                      throws java.lang.ClassNotFoundException,
                                             java.lang.IllegalAccessException,
                                             java.lang.InstantiationException,
                                             java.lang.NoSuchMethodException,
                                             java.lang.reflect.InvocationTargetException
        This will return the default Crypto Suite Factory implementation. Can be overwritten by org.hyperledger.fabric.sdk.crypto.default_crypto_suite_factory property. see Config.getDefaultCryptoSuiteFactory() Classes specified by this property must implement a public static method instance that returns back a single instance of this factory.
        Returns:
        A single instance of a CryptoSuiteFactory.
        Throws:
        java.lang.ClassNotFoundException
        java.lang.IllegalAccessException
        java.lang.InstantiationException
        java.lang.NoSuchMethodException
        java.lang.reflect.InvocationTargetException