Class MutableKeyCreationRegistry


  • public final class MutableKeyCreationRegistry
    extends java.lang.Object
    Stores methods to create Key objects from Parameters with new randomness.
    • Constructor Detail

      • MutableKeyCreationRegistry

        public MutableKeyCreationRegistry()
    • Method Detail

      • add

        public <ParametersT extends Parameters> void add​(KeyCreator<ParametersT> creator,
                                                         java.lang.Class<ParametersT> parametersClass)
                                                  throws java.security.GeneralSecurityException
        Adds a new "InsecureKeyCreator" to the instance.

        If a creator for this class has been added previously, the two instances have to be equal. Otherwise, this method throws a GeneralSecurityException.

        Throws:
        java.security.GeneralSecurityException