public class PinCodeConfig
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PinCodeConfig.PinCodeType
General
PinCodeConfig.Types that should cover most desired pin code configs: Alpha, Numeric, and
Alphanumberic. |
static interface |
PinCodeConfig.Type
The interface that the
PinCodeConfig.PinCodeType implements. |
| Constructor and Description |
|---|
PinCodeConfig()
Constructs the default pin config, 4 digits and 5 minute lockout time
|
PinCodeConfig(long autoLockTime)
Constructs a pin config with 4 digits and the provided lockout time
|
PinCodeConfig(PinCodeConfig.Type type,
int length,
long autoLockTime)
Constructs a pin config with the specific type, character length, and lockout time
|
| Modifier and Type | Method and Description |
|---|---|
long |
getPinAutoLockTime()
Returns the amount of time in milliseconds that the user must be gone from the app for before
they are prompted for their pin code again.
|
int |
getPinLength()
Returns the character length required for the pin
|
PinCodeConfig.Type |
getPinType()
Returns the pin type representing the restrictions on the pin code for the app
|
void |
setPinAutoLockTime(long pinAutoLockTime)
Sets the amount of time in milliseconds that the user must be gone from the app for before
they are prompted for their pin code again.
|
public PinCodeConfig()
public PinCodeConfig(long autoLockTime)
autoLockTime - the time before the user must re-enter their pinpublic PinCodeConfig(PinCodeConfig.Type type, int length, long autoLockTime)
type - the PinCodeConfig.Type representing the pincode restrictionslength - the character length of the pin codeautoLockTime - the time before the user must re-enter their pinpublic PinCodeConfig.Type getPinType()
public int getPinLength()
public long getPinAutoLockTime()
public void setPinAutoLockTime(long pinAutoLockTime)
This may be a setting in your app, and therefore can be updated at any time.
pinAutoLockTime - the lockout time