getInstance
class methods of this class. init
method in this KeyGenerator class that takes these two universally shared types of arguments. There is also one that takes just a keysize
argument, and uses the SecureRandom implementation of the highest-priority installed provider as the source of randomness (or a system-provided source of randomness if none of the installed providers supply a SecureRandom implementation), and one that takes just a source of randomness. init
methods, it is up to the provider what to do about the algorithm-specific parameters (if any) to be associated with each of the keys. init
methods that have an AlgorithmParameterSpec
argument. One also has a SecureRandom
argument, while the other uses the SecureRandom implementation of the highest-priority installed provider as the source of randomness (or a system-provided source of randomness if none of the installed providers supply a SecureRandom implementation). init
method), each provider must supply (and document) a default initialization. KeyGenerator
algorithms with the keysizes in parentheses: