public final class CryptographicHashFactory
CollResFactory has a member of type FactoriesUtility to which it delegates the actual creation of the object.
This ensures proper code re-use.The
factories have two getObject methods to retrieve an algorithm compatible with the type;
one specifies the provider and the other one relies on a default provider.