ERROR - java.security.InvalidParameterSpecException - Possible Causes of InvalidParameterSpecException

Exception Thrown By:Cause
ClassMethod
AlgorithmParameters public final void
init(AlgorithmParameterSpec paramSpec)
if the given parameter specification is
inappropriate for the initialization of this parameter object.
AlgorithmParameters public final
T getParameterSpec(Class paramSpec)
if the requested parameter specification
is inappropriate for this parameter object.