Interface KeyGeneratorFactory

    • Method Detail

      • getAlgorithmName

        java.lang.String getAlgorithmName()
        Get name of key generator algorithm.
        Returns:
        Name of key generator algorithm.
      • hasMandatoryParameters

        boolean hasMandatoryParameters()
        Does the algorithm has mandatory parameters and therefore requires a key generator definition in mapping file?
        Returns:
        true if algorithm has mandatory parameters and therefore requires a key generator definition in mapping file. false if algorithm does not require parameters or has only optional parameters.
      • createKeyGenerator

        KeyGenerator createKeyGenerator()
                                 throws GeneratorException
        Create a default key generator instance with the algorithm the factory is responsible for. This is only possible for those algorithms that do not require mandatory parameters.
        Returns:
        A default key generator instance with the algorithm the factory is responsible for.
        Throws:
        GeneratorException - If creation of default key generator is not possible due to required mandatory parameters.
      • createKeyGenerator

        KeyGenerator createKeyGenerator​(KeyGeneratorDef definition)
                                 throws GeneratorException
        Create a key generator instance from the given definition with the algorithm the factory is responsible for.
        Parameters:
        definition - The definition to initialize the key generator.
        Returns:
        A key generator instance initialized with given definition with the algorithm the factory is responsible for.
        Throws:
        GeneratorException - If failed to create a key generator instance.