public class PinAuthService extends Object implements AuthService
Modifier and Type | Field and Description |
---|---|
static List<PinRule> |
DEFAULT_PIN_RULES
Default PIN rules for changePin operation.
|
Modifier and Type | Method and Description |
---|---|
static PinAuthService |
create(AuthenticationModule module)
Create PinAuthService instance using AuthenticationModule
|
PinAuthInput |
createAuthInput(byte[] pinArrayToStore,
boolean wipeSource)
Create an PinAuthInput object.
|
PinAuthInput |
createAuthInput(String pinStringToStore)
Create an PinAuthInput object.
|
PinAuthInput |
createAuthInput(String pinStringToStore,
String charsetName)
Create an PinAuthInput object.
|
PinAuthMode |
getAuthMode()
Get authentication mode reference corresponding to this service.
|
boolean |
isConfigured()
Indicates if the authentication mode is configured and ready for use.
|
boolean |
isSupported()
Indicates if the authentication mode is supported by the hardware.
|
static void |
setPinValidationRules(List<PinRule> pinRules) |
public static PinAuthService create(AuthenticationModule module)
module
- the AuthenticationModule.public PinAuthInput createAuthInput(String pinStringToStore, String charsetName)
pinStringToStore
- the Pin String to securely storecharsetName
- The string will be converted to this character when stored in
the SecureData
object. It could be "UTF-8",
"ISO-8859-15", "UTF-16", "US-ASCII", etc.public PinAuthInput createAuthInput(String pinStringToStore)
pinStringToStore
- The Pin string to securely store. The string will be converted
to UTF-8 when stored in the SecureData
object.public PinAuthInput createAuthInput(byte[] pinArrayToStore, boolean wipeSource)
pinArrayToStore
- the pin byte array to securely storewipeSource
- If true
, then the byte[]
will be erased
if the method returns successfully. Otherwise the input will
not be modified.public PinAuthMode getAuthMode()
getAuthMode
in interface AuthService
public boolean isSupported()
isSupported
in interface AuthService
public boolean isConfigured()
isConfigured
in interface AuthService