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

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c# - Copy ObservableCollection to another ObservableCollection -

All overlapping substrings matching a java regex -