Class DfltKeypairGeneratorFactory

    • Constructor Detail

      • DfltKeypairGeneratorFactory

        public DfltKeypairGeneratorFactory()
    • Method Detail

      • setP11CryptServiceFactory

        public void setP11CryptServiceFactory​(P11CryptServiceFactory p11CryptServiceFactory)
      • setSecurityFactory

        public void setSecurityFactory​(SecurityFactory securityFactory)
      • canCreateKeypairGenerator

        public boolean canCreateKeypairGenerator​(String type)
        Description copied from interface: KeypairGeneratorFactory
        Indicates whether a signer of the given type can be created or not.
        Specified by:
        canCreateKeypairGenerator in interface KeypairGeneratorFactory
        Parameters:
        type - Type of the signer. Must not be null.
        Returns:
        true if signer of the given type can be created, false otherwise.
      • newKeypairGenerator

        public KeypairGenerator newKeypairGenerator​(String type,
                                                    String conf,
                                                    SecurityFactory securityFactory)
                                             throws org.xipki.util.exception.ObjectCreationException
        Description copied from interface: KeypairGeneratorFactory
        Creates a new keypair generator.
        Specified by:
        newKeypairGenerator in interface KeypairGeneratorFactory
        Parameters:
        type - Type of the keypair generator. Must not be null.
        conf - Configuration of the keypair generator. May be null.
        securityFactory - SecurityFactory.
        Returns:
        new keypair generator.
        Throws:
        org.xipki.util.exception.ObjectCreationException - if signer could not be created.