    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class sun.security.provider.KeyGenerator

    java.lang.Object
       |
       +----java.security.KeyGenerator
               |
               +----sun.security.provider.KeyGenerator

public class KeyGenerator
extends KeyGenerator

A generic key generator which will generate secret keys of a given length.

##

KeyGenerator(String, int)

##

generateKey()
  Generates a key.
initialize(SecureRandom)
  Initialize the key generator.

##

KeyGenerator

     public KeyGenerator(String algorithm,
                         int size)

##

initialize

     public void initialize(SecureRandom random)

  Initialize the key generator.

  Overrides:
    initialize in class KeyGenerator

generateKey

     public SecretKey generateKey()

  Generates a key.

  Overrides:
    generateKey in class KeyGenerator

    All Packages  Class Hierarchy  This Package  Previous  Next  Index