Java Key Public getPublicKeyModulus(RSAPublicKey publicKey)

Here you can find the source of getPublicKeyModulus(RSAPublicKey publicKey)

Description

get Public Key Modulus

License

Apache License

Declaration

public static String getPublicKeyModulus(RSAPublicKey publicKey) 

Method Source Code

//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*/
}

Related

  1. getPublicKey(String publicKeyFilepath, String algorithm)
  2. getPublicKeyFromBytes(final String algorithm, final byte[] publicKeyBytes)
  3. getPublicKeyFromFile(File cert, String alias, String password)
  4. getPublicKeyFromPEMFile(String fileName, String jceProvider)
  5. getPublicKeyFromString(String certificateString)
  6. getPublicKeySpec(KeyPair kp)
  7. getPublicPutMethodForResultClass(final Class resultClass)