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

Exception Thrown By:Cause
ClassMethod
AlgorithmParameterGenerator public final void
init(AlgorithmParameterSpec genParamSpec)
if the given parameter generation
values are inappropriate for this parameter
KeyGenerator public final void
init(AlgorithmParameterSpec params)
if the given parameters
are inappropriate for this key
KeyManagerFactory public final void
init(ManagerFactoryParameters spec)
if an
error is encounteredget
PKIXParameters public void
setTrustAnchors(Set trustAnchors)
if the specified
Set is empty (trust
TransformService public abstract void
init(TransformParameterSpec params)
if the specified parameters
are invalid for this algorithmmarshal