Class RegistryConfiguration


  • public final class RegistryConfiguration
    extends InternalConfiguration
    Represents the configuration as currently specified by the registry. That is, this configuration is just a thin layer forwarding calls to the global Registry.

    Because the global Registry changes when user code adds to it, using this class is not recommended.

    • Method Detail

      • wrap

        public <P> P wrap​(KeysetHandleInterface keysetHandle,
                          MonitoringAnnotations annotations,
                          java.lang.Class<P> clazz)
                   throws java.security.GeneralSecurityException
        Description copied from class: InternalConfiguration
        Creates a primitive from a KeysetHandle.
        Specified by:
        wrap in class InternalConfiguration
        Throws:
        java.security.GeneralSecurityException - if the wrapper for the provided pair (input class, wrapped class) is not registered
      • createFromPrimitiveRegistry

        public static InternalConfiguration createFromPrimitiveRegistry​(PrimitiveRegistry registry)
        Do not call.

        We shadow the function createFromPrimitiveRegistry here so that one cannot invoke the static function in the superclass by writing RegistryConfiguration.createFromPrimitiveRegistry.