How to find the public key strength using java api

Hi, I required the jave code/api,how to retrieve the publicKey strength.Like its 64 bit or 128 bit or 256 bits. Or shall i change this value using jave code.

Please help me anybody knows.its very urgent.

Thanks,

Sankar