This class defines the Service Provider Interface (SPI) for the KeyPairGenerator class, which is used to generate pairs of public and private keys.
All the abstract methods in this class must be implemented by each cryptographic service provider who wishes to supply the implementation of a key pair generator for a particular algorithm.
In case the client does not explicitly initialize the KeyPairGenerator (via a call to an initialize method), each provider must supply (and document) a default initialization. For example, the Sun provider uses a default modulus size (keysize) of 1024 bits.
This class defines the Service Provider Interface (SPI) for the KeyPairGenerator class, which is used to generate pairs of public and private keys. All the abstract methods in this class must be implemented by each cryptographic service provider who wishes to supply the implementation of a key pair generator for a particular algorithm. In case the client does not explicitly initialize the KeyPairGenerator (via a call to an initialize method), each provider must supply (and document) a default initialization. For example, the Sun provider uses a default modulus size (keysize) of 1024 bits.
(generate-key-pair this)
Generates a key pair. Unless an initialization method is called using a KeyPairGenerator interface, algorithm-specific defaults will be used. This will generate a new key pair every time it is called.
returns: the newly generated KeyPair - java.security.KeyPair
Generates a key pair. Unless an initialization method is called using a KeyPairGenerator interface, algorithm-specific defaults will be used. This will generate a new key pair every time it is called. returns: the newly generated KeyPair - `java.security.KeyPair`
(initialize this keysize random)
Initializes the key pair generator for a certain keysize, using the default parameter set.
keysize - the keysize. This is an algorithm-specific metric, such as modulus length, specified in number of bits. - int
random - the source of randomness for this generator. - java.security.SecureRandom
throws: java.security.InvalidParameterException - if the keysize is not supported by this KeyPairGeneratorSpi object.
Initializes the key pair generator for a certain keysize, using the default parameter set. keysize - the keysize. This is an algorithm-specific metric, such as modulus length, specified in number of bits. - `int` random - the source of randomness for this generator. - `java.security.SecureRandom` throws: java.security.InvalidParameterException - if the keysize is not supported by this KeyPairGeneratorSpi object.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close