Class BuiltInCertificateProfileCatalog

java.lang.Object
zeroecho.pki.api.profile.BuiltInCertificateProfileCatalog

public final class BuiltInCertificateProfileCatalog extends Object
Loader for the fixed built-in certificate-profile resource catalogue.

The catalogue is stateless and thread-safe. Every load reparses the packaged manifest and profiles, verifies canonical resource bytes, and computes SHA-256 over canonical JSON. Built-in templates are provisioning inputs, not implicit runtime defaults; this loader performs no persistence or activation.

Loading takes linear time in the total bounded resource size and retains one immutable canonical copy per returned template.

  • Field Details

    • MANIFEST_RESOURCE

      public static final String MANIFEST_RESOURCE
      Fixed packaged catalogue manifest resource.
      See Also:
  • Method Details

    • load

      public static List<BuiltInCertificateProfileTemplate> load(ClassLoader classLoader)
      Loads and validates the packaged built-in profile templates.
      Parameters:
      classLoader - explicit resource-loading boundary
      Returns:
      immutable templates in manifest order
      Throws:
      PkiException - if the manifest or any profile resource is missing, duplicated, malformed, noncanonical, or inconsistent