Here you can find the source of getPublicKeyModulus(RSAPublicKey publicKey)
public static String getPublicKeyModulus(RSAPublicKey publicKey)
//package com.java2s; //License from project: Apache License import java.security.interfaces.RSAPublicKey; public class Main { public static String getPublicKeyModulus(RSAPublicKey publicKey) { return publicKey.getModulus().toString(16); }/*from ww w. j ava2 s . com*/ }