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).

    Since:
    WAS 6.1
    Version:
    1.0
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      KeyPair generateKeyPair()
      This method will be called whenever a key needs to be generated either from the schedule or manually requested.
      void 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)

        This method will be called to pass any custom properties configured with the KeySet to the implementation of this interface.

        Parameters:
        java.util.Properties -
      • 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.

        Returns:
        com.ibm.websphere.crypto.KeyPair
        Throws:
        KeyException
IBM WebSphere Application ServerTM
Release 9.0