public class PinAuthService extends java.lang.Object implements AuthService
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<PinRule> |
DEFAULT_PIN_RULES
default PIN rules
|
| 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(java.lang.String pinStringToStore)
Create an PinAuthInput object.
|
PinAuthInput |
createAuthInput(java.lang.String pinStringToStore,
java.lang.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(java.util.List<PinRule> pinRules) |
public static final java.util.List<PinRule> DEFAULT_PIN_RULES
public static PinAuthService create(AuthenticationModule module)
module - the AuthenticationModule.public PinAuthInput createAuthInput(java.lang.String pinStringToStore, java.lang.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(java.lang.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 AuthServicepublic static void setPinValidationRules(java.util.List<PinRule> pinRules)
public boolean isSupported()
isSupported in interface AuthServicepublic boolean isConfigured()
isConfigured in interface AuthService