Selecting the security providers
To select the security providers, you can set the following system property at class loading time:
com.entrust.toolkit.security.provider.Initializer.defaultMode=<mode>Or use the setproviders method:
Initializer.getInstance().setproviders(Initializer.<mode>);Where <mode> is one of the following values.
MODE_ENTRUST_FIRST
Enable the Entrust and IAIK JCA/JCE security providers with the highest preference (in first and second positions).
MODE_ENTRUST_LAST
Enable the Entrust and IAIK JCA/JCE security providers with the lowest preference (in the second last, and last positions) – for example, to work around bugs in the JRE JAR verification routine.
MODE_NORMAL
Enable the Entrust and IAIK JCA/JCE security providers.
MODE_STATIC
In this mode, the toolkit does not attempt to remove or add the Entrust or IAIK security providers – for example, when the security providers are installed statically through the java.security file. This setting gives full control over provider initialization to the application using the toolkit.
If the application has not set the Entrust or IAIK providers, any attempt to access a cryptographic algorithm from the Entrust or IAIK providers will result in the following exception.
NoSuchProviderExceptionMODE_UNINITIALIZED
Enable no security providers.