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

Exception Thrown By:Cause
ClassMethod
ExemptionMechanism public final void
init(Key key)
if the given key
is inappropriate for this exemption mechanism.
KeyAgreement public final void
init(Key key)
if the given key
is inappropriate for this key agreement
Mac public final void
init(Key key)
if the given key
is inappropriate for initializing this
SecretKeyFactory public final SecretKey
translateKey(SecretKey key)
if the given key cannot
be processed by this secret key factory