com.alarexgroup.m2mplf.adapters.security
Class SIMSecurityAdapter

java.lang.Object
  extended by com.alarexgroup.m2mplf.adapters.security.SIMSecurityAdapter
public class SIMSecurityAdapter
extends java.lang.Object

Adapter is used for security operations on SIM card

Constructor Summary
SIMSecurityAdapter()
           
 
Method Summary
 boolean authenticatePIN(java.lang.String pin)
          Method authenticates SIM with PINu
static SIMSecurityAdapter getSecurityAdapter()
          Method initializes adapter
 boolean checkIfPINIsNeeded()
          Method verifies if SIM card needs PIN code
static boolean simIsInserted()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SIMSecurityAdapter

public SIMSecurityAdapter()
Method Detail

getSecurityAdapter

public static SIMSecurityAdapter getSecurityAdapter()
Method initializes adapter

Returns:
SecurityAdapter
See Also:

simIsInserted

public static boolean simIsInserted()

checkIfPINIsNeeded

public boolean checkIfPINIsNeeded()
Method verifies if SIM card needs PIN code

Returns:
true/false

authenticatePIN

public boolean authenticatePIN(java.lang.String pin)
Method authenticates SIM with PINu

Parameters:
pin - PIN for SIM
Returns:
True - success