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 Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_JDK_PROVIDER
If set as the default security provider then default crypto suite will not use explicit provider
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CryptoSuite
getCryptoSuite()
Return a default crypto suiteCryptoSuite
getCryptoSuite(java.util.Properties properties)
Produce a crypto suite by specified by these properties.static CryptoSuiteFactory
getDefault()
This will return the default Crypto Suite Factory implementation.
-
-
-
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
-
getCryptoSuite
CryptoSuite getCryptoSuite(java.util.Properties properties) throws CryptoException, InvalidArgumentException
Produce a crypto suite by specified by these properties. Properties are unique to each Crypto Suite implementation.- Parameters:
properties
-- Returns:
- Throws:
CryptoException
InvalidArgumentException
-
getCryptoSuite
CryptoSuite getCryptoSuite() throws CryptoException, InvalidArgumentException
Return a default crypto suite- Returns:
- Throws:
CryptoException
InvalidArgumentException
-
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. seeConfig.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
-
-