Java Key Pair Create generateKeyPair(String algo)

Here you can find the source of generateKeyPair(String algo)

Description

generate Key Pair

License

Open Source License

Declaration

public static KeyPair generateKeyPair(String algo) throws GeneralSecurityException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.security.GeneralSecurityException;

import java.security.KeyPair;
import java.security.KeyPairGenerator;

public class Main {
    public static KeyPair generateKeyPair(String algo) throws GeneralSecurityException {
        KeyPairGenerator kpg = KeyPairGenerator.getInstance(algo);
        return kpg.genKeyPair();
    }/*from ww  w . jav  a  2s  . c om*/
}

Related

  1. generateKeyPair(int keysize)
  2. generateKeyPair(int keySize, String fileChavePublica, String fileChavePrivada)
  3. generateKeyPair(int keySizeInBits, String algo)
  4. generateKeyPair(int len)
  5. generateKeyPair(int size)
  6. generateKeyPair(String algo, int keyLength, String provider)
  7. generateKeyPair(String algorithm, int bits)
  8. generateKeyPair(String algorithm, int keySize)
  9. generateKeyPair(String algorithm, int keysize)