com.ibm.websphere.crypto
Interface KeyPairGenerator
- public interface KeyPairGenerator
This interface defines the method to generate a java.security.KeyPair. When a keyGeneration class implements this method, the generateKeyPair method will be called and a KeyPair will be stored in the keystore. The isKeyPair attribute in the KeySet configuration must be set to true when using this interface instead of the com.ibm.websphere.crypto.KeyGenerator interface. The isKeyPair attributes is also used when the keys already exist in a KeyStore and we are just reading them (not generating them from this impl).
Method Summary
Modifier and Type | Method and Description |
---|---|
generateKeyPair()
This method will be called whenever a key needs to be generated either
from the schedule or manually requested.
|
|
|
init(java.util.Properties customProps)
This method will be called to pass any custom properties configured with
the KeySet to the implementation of this interface.
|
Method Detail
init
- void init(java.util.Properties customProps)
generateKeyPair
- KeyPair generateKeyPair()
- throws KeyException
This method will be called whenever a key needs to be generated either from the schedule or manually requested. The key will be stored in the KeyStore referenced by the configured KeySet which contains the keyGenerationClass implementing this interface. The implementation of this interface will manage the type of the key. The user of the KeySet should also know the type that will be returned by this keyGenerationClass.
This method will be called to pass any custom properties configured with the KeySet to the implementation of this interface.