/** * Generates a secret key. * * @return the generated secret key. */ public final SecretKey generateKey() { return spiImpl.engineGenerateKey(); }
/** * Initializes this {@code KeyGenerator} instance for the specified key size * (in bits) using the specified randomness source. * * @param keysize * the size of the key (in bits). * @param random * the randomness source for any random bytes. */ public final void init(int keysize, SecureRandom random) { spiImpl.engineInit(keysize, random); }
/** * Initializes this {@code KeyGenerator} with the specified randomness * source. * * @param random * the randomness source for any random bytes. */ public final void init(SecureRandom random) { spiImpl.engineInit(random); } }
/** * Generates a secret key. * * @return the generated secret key. */ public final SecretKey generateKey() { return spiImpl.engineGenerateKey(); }
/** * Initializes this {@code KeyGenerator} instance for the specified key size * (in bits). * * @param keysize * the size of the key (in bits). */ public final void init(int keysize) { spiImpl.engineInit(keysize, RANDOM);//new SecureRandom()); }
/** * Generates a secret key. * * @return the generated secret key. */ public final SecretKey generateKey() { return spiImpl.engineGenerateKey(); }
/** * Initializes this {@code KeyGenerator} instance with the specified * algorithm parameters. * * @param params * the parameters for the key generation algorithm. * @throws InvalidAlgorithmParameterException * if the parameters cannot be used to initialize this key * generator algorithm. */ public final void init(AlgorithmParameterSpec params) throws InvalidAlgorithmParameterException { spiImpl.engineInit(params, RANDOM);//new SecureRandom()); }
/** * Generates a secret key. * * @return the generated secret key. */ public final SecretKey generateKey() { return spiImpl.engineGenerateKey(); }
/** * Initializes this {@code KeyGenerator} instance with the specified * algorithm parameters and randomness source. * * @param params * the parameters for the key generation algorithm. * @param random * the randomness source for any random bytes. * @throws InvalidAlgorithmParameterException * if the parameters cannot be uses to initialize this key * generator algorithm. */ public final void init(AlgorithmParameterSpec params, SecureRandom random) throws InvalidAlgorithmParameterException { spiImpl.engineInit(params, random); }
/** * Generates a secret key. * * @return the generated secret key. */ public final SecretKey generateKey() { return spiImpl.engineGenerateKey(); }
/** * Initializes this {@code KeyGenerator} instance for the specified key size * (in bits). * * @param keysize * the size of the key (in bits). */ public final void init(int keysize) { spiImpl.engineInit(keysize, RANDOM);//new SecureRandom()); }
/** * Generates a secret key. * * @return the generated secret key. */ public final SecretKey generateKey() { return spiImpl.engineGenerateKey(); }
/** * Initializes this {@code KeyGenerator} instance for the specified key size * (in bits) using the specified randomness source. * * @param keysize * the size of the key (in bits). * @param random * the randomness source for any random bytes. */ public final void init(int keysize, SecureRandom random) { spiImpl.engineInit(keysize, random); }
/** * Generates a secret key. * * @return the generated secret key. */ public final SecretKey generateKey() { return spiImpl.engineGenerateKey(); }
/** * Initializes this {@code KeyGenerator} with the specified randomness * source. * * @param random * the randomness source for any random bytes. */ public final void init(SecureRandom random) { spiImpl.engineInit(random); } }
/** * Initializes this {@code KeyGenerator} instance for the specified key size * (in bits). * * @param keysize * the size of the key (in bits). */ public final void init(int keysize) { spiImpl.engineInit(keysize, RANDOM);//new SecureRandom()); }
/** * Initializes this {@code KeyGenerator} instance for the specified key size * (in bits). * * @param keysize * the size of the key (in bits). */ public final void init(int keysize) { spiImpl.engineInit(keysize, RANDOM);//new SecureRandom()); }
/** * Initializes this {@code KeyGenerator} instance for the specified key size * (in bits) using the specified randomness source. * * @param keysize * the size of the key (in bits). * @param random * the randomness source for any random bytes. */ public final void init(int keysize, SecureRandom random) { spiImpl.engineInit(keysize, random); }
/** * Initializes this {@code KeyGenerator} instance for the specified key size * (in bits) using the specified randomness source. * * @param keysize * the size of the key (in bits). * @param random * the randomness source for any random bytes. */ public final void init(int keysize, SecureRandom random) { spiImpl.engineInit(keysize, random); }
/** * Initializes this {@code KeyGenerator} instance for the specified key size * (in bits) using the specified randomness source. * * @param keysize * the size of the key (in bits). * @param random * the randomness source for any random bytes. */ public final void init(int keysize, SecureRandom random) { spiImpl.engineInit(keysize, random); }