Class AbstractAlgorithm.AbstractAlgorithmBuilder<T extends AbstractAlgorithm,​B extends AlgorithmBuilder<T>>

    • Constructor Detail

      • AbstractAlgorithmBuilder

        public AbstractAlgorithmBuilder​(String algorithmUri)
        Constructor.
        Parameters:
        algorithmUri - the algorithm URI
    • Method Detail

      • build

        public T build()
        Builds the Algorithm.

        If invoked several times the method must return the same object.

        Specified by:
        build in interface AlgorithmBuilder<T extends AbstractAlgorithm>
        Returns:
        the built object
      • jcaName

        public B jcaName​(String jcaName)
        Assigns the JCA name.
        Parameters:
        jcaName - the JCA name
        Returns:
        the builder
      • order

        public B order​(int order)
        Assigns the algorithm order.
        Parameters:
        order - the order
        Returns:
        the builder
      • blacklisted

        public B blacklisted​(boolean blacklisted)
        Sets whether this algorithm is blacklisted. The default is false.
        Parameters:
        blacklisted - whether this algorithm is blacklisted
        Returns:
        the builder
      • getBuilder

        protected abstract B getBuilder()
        Gets the current builder instance.
        Returns:
        the builder instance
      • createAlgorithm

        protected abstract T createAlgorithm​(String algorithmUri)
        Creates the Algorithm instance.
        Parameters:
        algorithmUri - the algorithm URI
        Returns:
        an Algorithm instance
      • getAlgorithm

        protected final T getAlgorithm()
        Gets the algorithm instance that is being built.
        Returns:
        the algorithm instance