Updated on 2026-08-14
This commit is contained in:
parent
abc5bc3d14
commit
6948a2c04a
8 changed files with 121 additions and 29 deletions
|
|
@ -2,6 +2,11 @@ package com.tangem.tangemcard.data.external;
|
|||
|
||||
import com.tangem.tangemcard.data.TangemCard;
|
||||
|
||||
|
||||
/**
|
||||
* This interface provide method to make substitution of read card data (token symbol, contract address)
|
||||
* if they was unknown when the card was produced
|
||||
*/
|
||||
public interface CardDataSubstitutionProvider {
|
||||
void applySubstitution(TangemCard card);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,9 @@
|
|||
package com.tangem.tangemcard.data.external;
|
||||
|
||||
/**
|
||||
* This interfaces provide function to randomly select parameters to run one VerifyCode command, check answer and
|
||||
* state that card is genuine or not
|
||||
*/
|
||||
public interface FirmwaresDigestsProvider {
|
||||
VerifyCodeRecord selectRandomVerifyCodeBlock(String firmwareVersion);
|
||||
|
||||
|
|
|
|||
|
|
@ -2,10 +2,29 @@ package com.tangem.tangemcard.data.external;
|
|||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Interface of PINsProvider - object that know some list of PINs (used when start first time read), PIN2 (used for protected operation) and store last used PIN
|
||||
* to use it in following operations
|
||||
*/
|
||||
public interface PINsProvider {
|
||||
|
||||
/**
|
||||
* @return list of known PINs
|
||||
* This PINs used when start reading of card
|
||||
* When start reading a PINs from this list used sequential in search PIN algorithm until right PIN found
|
||||
*/
|
||||
List<String> getPINs();
|
||||
|
||||
/**
|
||||
* @return PIN2 for protected operations
|
||||
*/
|
||||
String getPIN2();
|
||||
|
||||
|
||||
/**
|
||||
* Call after successful first time reading of card to store founded PIN (normally this PIN must be returned in next time {@see getPINs} at first position)
|
||||
* @param pin
|
||||
*/
|
||||
void setLastUsedPIN(String pin);
|
||||
|
||||
List<String> getPINs();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue