Class NativeSignaturePackageEntry

java.lang.Object
com.pnfsoftware.jeb.core.units.code.asm.sig.NativeSignaturePackageEntry

public class NativeSignaturePackageEntry extends Object
Represents a signature package available through the NativeSignatureDBManager. The corresponding signatures are not necessarily loaded in memory (see isLoadedInMemory().

The entry also stores signatures intended to be written into the package, see getSignatureToWrite().

Notes: once loaded in memory, the signatures are not stored in this class, but in an internal storage of the NativeSignatureDBManager.

  • Constructor Details

  • Method Details

    • getSize

      public long getSize()
      Get the package file size in bytes.
    • getStatus

    • setStatus

      public void setStatus(NativeSignaturePackageEntry.PackageStatus status)
    • isActive

      public boolean isActive()
    • isLoadedInMemory

      public boolean isLoadedInMemory()
      Returns:
      true if the signatures of this package are loaded in memory, false otherwise
    • incrementOpenHandle

      public void incrementOpenHandle()
    • decrementOpenHandle

      public void decrementOpenHandle()
    • getFile

      public File getFile()
    • getMetadata

      public NativeSignaturePackageMetadata getMetadata()
    • isUserCreated

      public boolean isUserCreated()
      Returns true if the package was created by a user, false if it is an official PNF Software package.
    • clearSignaturesToWrite

      public void clearSignaturesToWrite()
    • addSignatureToWrite

      public void addSignatureToWrite(INativeSignature sig)
      Add a signature to be written into the package.
      Parameters:
      sig -
    • getSignatureToWrite

      public List<INativeSignature> getSignatureToWrite()
      Retrieve the signatures that should be added to the package.
      Returns:
      list of signatures
    • toString

      public String toString()
      Overrides:
      toString in class Object