Interface CryptoSuiteFactory
- 
- All Known Implementing Classes:
 HLSDKJCryptoSuiteFactory
public interface CryptoSuiteFactoryFactory 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.StringDEFAULT_JDK_PROVIDERIf 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 CryptoSuitegetCryptoSuite()Return a default crypto suiteCryptoSuitegetCryptoSuite(java.util.Properties properties)Produce a crypto suite by specified by these properties.static CryptoSuiteFactorygetDefault()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:
 CryptoExceptionInvalidArgumentException
 
- 
getCryptoSuite
CryptoSuite getCryptoSuite() throws CryptoException, InvalidArgumentException
Return a default crypto suite- Returns:
 - Throws:
 CryptoExceptionInvalidArgumentException
 
- 
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.ClassNotFoundExceptionjava.lang.IllegalAccessExceptionjava.lang.InstantiationExceptionjava.lang.NoSuchMethodExceptionjava.lang.reflect.InvocationTargetException
 
 - 
 
 -