Interface GordianZipLock
public interface GordianZipLock
Lock interface.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]Obtain lockBytes.Obtain lockType.booleanisFresh()Is this available to lock a zipFile?booleanisLocked()Is this still locked?voidunlock(char[] pPassword) Unlock with password.voidunlock(GordianKeyPair pKeyPair, char[] pPassword) Unlock with keyPair and password.voidunlock(GordianLock<?> pLock) Unlock with resolved lock.
-
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
Obtain lockBytes.- Returns:
- the lockBytes
- Throws:
GordianException- on error
-
unlock
Unlock with resolved lock.- Parameters:
pLock- the resolved lock- Throws:
GordianException- on error
-
unlock
Unlock with password.- Parameters:
pPassword- the password- Throws:
GordianException- on error
-
unlock
Unlock with keyPair and password.- Parameters:
pKeyPair- the keyPairpPassword- the password- Throws:
GordianException- on error
-