cryptography - How to print a certificate's public key length and modulus separately in Java -
i found method called getpublickey() under java.security.cert.certificate class, methods returns length, modulus in 1 value publickey object. there way information separately ??
in case dealing rsa based public key publickey object receive rsapublickey instance.
therefore can cast rsapublickey , use it's methods getpublicexponent() , getmodulus().
Comments
Post a Comment