Class PolicyRequirement.InsecureAcceptAnything

java.lang.Object
land.oras.policy.PolicyRequirement
land.oras.policy.PolicyRequirement.InsecureAcceptAnything
Enclosing class:
PolicyRequirement

public static final class PolicyRequirement.InsecureAcceptAnything extends PolicyRequirement
Accept any image unconditionally – no signature or digest verification is performed.

JSON example:

{"type": "insecureAcceptAnything"}
  • Field Details

  • Constructor Details

    • InsecureAcceptAnything

      public InsecureAcceptAnything()
      Constructor
  • Method Details

    • getType

      public String getType()
      Description copied from class: PolicyRequirement
      Return the type name of this requirement as it appears in the policy JSON.
      Specified by:
      getType in class PolicyRequirement
      Returns:
      the type string, e.g. "insecureAcceptAnything".