Skip to content

KeyGenerator

Victor Bieszka edited this page Mar 18, 2019 · 1 revision

Class KeyGenerator

public class KeyGenerator
extends java.lang.Object

Constructor Summary

 
Constructor and Description
KeyGenerator() 

Method Summary

   
Modifier and Type Method and Description
static java.security.KeyPair generateRSAKeyPair()
Generates/Computes a new RSA key pair.

Methods inherited from class java.lang.Object

equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

  • KeyGenerator

    public KeyGenerator()

Method Detail

  • generateRSAKeyPair

    public static java.security.KeyPair generateRSAKeyPair()
                                                    throws java.security.NoSuchAlgorithmException,
                                                           java.security.NoSuchProviderException
    Generates/Computes a new RSA key pair.
    Returns:
    Throws:
    java.security.NoSuchAlgorithmException
    java.security.NoSuchProviderException

Clone this wiki locally