public interface GordianZipLock
Lock interface.
  • Method Details

    • isLocked

      boolean isLocked()
      Is this still locked?
      Returns:
      true/false
    • isFresh

      boolean isFresh()
      Is this available to lock a zipFile?
      Returns:
      true/false
    • getLockType

      GordianZipLockType getLockType()
      Obtain lockType.
      Returns:
      the lockType
    • getLockBytes

      byte[] getLockBytes() throws GordianException
      Obtain lockBytes.
      Returns:
      the lockBytes
      Throws:
      GordianException - on error
    • unlock

      void unlock(GordianLock<?> pLock) throws GordianException
      Unlock with resolved lock.
      Parameters:
      pLock - the resolved lock
      Throws:
      GordianException - on error
    • unlock

      void unlock(char[] pPassword) throws GordianException
      Unlock with password.
      Parameters:
      pPassword - the password
      Throws:
      GordianException - on error
    • unlock

      void unlock(GordianKeyPair pKeyPair, char[] pPassword) throws GordianException
      Unlock with keyPair and password.
      Parameters:
      pKeyPair - the keyPair
      pPassword - the password
      Throws:
      GordianException - on error