Class LockWipePolicy
-
- All Implemented Interfaces:
-
java.io.Serializable
@Deprecated() public class LockWipePolicy implements Serializable
The class responsible for defining and applying the lock and wipe policies.
Deprecated in 7.1, replace with 'LockAndWipeService'.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interface
LockWipePolicy.LockCallback
Callback interface used to handle a lock event.
public interface
LockWipePolicy.WipeCallback
Callback interface used to handle a wipe event.
-
Constructor Summary
Constructors Constructor Description LockWipePolicy()
Creates a default lock &wipe policy object with everything disabled and no callbacks specified. LockWipePolicy(boolean enabled, int lockDays, int wipeDays)
Creates a lock &wipe policy object with no callbacks specified. LockWipePolicy(boolean enabled, int lockDays, int wipeDays, LockWipePolicy.LockCallback lockCallback, LockWipePolicy.WipeCallback wipeCallback)
Creates a lock &wipe policy object.
-
Method Summary
Modifier and Type Method Description boolean
getEnabled()
Enabled accessor. int
getLockDays()
Lock Days accessor. int
getWipeDays()
Wipe Days accessor. boolean
apply(@NonNull() Date lastConnectionTime)
Applies the specified lock and wipe policy. LockWipePolicy
setLockCallback(@NonNull() LockWipePolicy.LockCallback lockCallback)
Sets the lock callback on a lock &wipe policy object. LockWipePolicy
setWipeCallback(@NonNull() LockWipePolicy.WipeCallback wipeCallback)
Sets the wipe callback on a lock &wipe policy object. -
-
Constructor Detail
-
LockWipePolicy
LockWipePolicy()
Creates a default lock &wipe policy object with everything disabled and no callbacks specified.
-
LockWipePolicy
LockWipePolicy(boolean enabled, int lockDays, int wipeDays)
Creates a lock &wipe policy object with no callbacks specified.- Parameters:
enabled
- Specifies whether the entire policy is enabled or not.lockDays
- The number of 24 hour periods that need to elapse without a successful connection to the server in order to lock the application.wipeDays
- The number of 24 hour periods that need to elapse without a successful * connection to the server in order to wipe the application.
-
LockWipePolicy
LockWipePolicy(boolean enabled, int lockDays, int wipeDays, LockWipePolicy.LockCallback lockCallback, LockWipePolicy.WipeCallback wipeCallback)
Creates a lock &wipe policy object.- Parameters:
enabled
- Specifies whether the entire policy is enabled or not.lockDays
- The number of 24 hour periods that need to elapse without a successful connection to the server in order to lock the application.wipeDays
- The number of 24 hour periods that need to elapse without a successful * connection to the server in order to wipe the application.lockCallback
- A LockCallback object that specifies the action to be performed in the case of a lock condition.wipeCallback
- A WipeCallback object that specifies the action to be performed * in the case of a wipe condition.
-
-
Method Detail
-
getEnabled
boolean getEnabled()
Enabled accessor.
-
getLockDays
int getLockDays()
Lock Days accessor.
-
getWipeDays
int getWipeDays()
Wipe Days accessor.
-
apply
boolean apply(@NonNull() Date lastConnectionTime)
Applies the specified lock and wipe policy.
- Parameters:
lastConnectionTime
- A Date object that specifies the last time the application connected to the server.
-
setLockCallback
@NonNull() LockWipePolicy setLockCallback(@NonNull() LockWipePolicy.LockCallback lockCallback)
Sets the lock callback on a lock &wipe policy object.
- Parameters:
lockCallback
- A LockCallback object that specifies the action to be performed in the case of a lock condition.
-
setWipeCallback
@NonNull() LockWipePolicy setWipeCallback(@NonNull() LockWipePolicy.WipeCallback wipeCallback)
Sets the wipe callback on a lock &wipe policy object.
- Parameters:
wipeCallback
- A WipeCallback object that specifies the action to be performed * in the case of a wipe condition.
-
-
-
-